-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
104 lines (89 loc) · 2.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: '2'
services:
# PYTHON CONTAINER
weather-reporter:
image: scapsulators/python-app:0.0.1
env_file:
- config.env
environment:
- FLASK_HOST=${FLASK_HOST}
- FLASK_PORT=${FLASK_PORT}
- DEBUG=${DEBUG}
ports:
- "5006:5006"
hostname: weather-reporter
container_name: weather-reporter
deploy:
resources:
limits:
cpus: '0.5'
memory: 4g
networks:
- weather-app-network
# NODEJS CONTAINERS
react-frontend:
image: scapsulators/react-app:0.0.1
container_name: react-frontend
ports:
- '3000:3000'
- "1000:80"
environment:
- NODE_ENV=development
networks:
- weather-app-network
library-api:
image: scapsulators/gateway:0.0.1
restart: always
container_name: gateway_node
ports:
- 5000:5000
environment:
NODE_ENV: ${NODE_ENV}
networks:
- weather-app-network
# JAVA CONTAINERS
audit:
image: scapsulators/audit-service:0.0.1
#build:
# context: ./audit
container_name: audit-micro
ports:
- '8084:8084'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- weather-app-network
authentication:
image: scapsulators/authentication-service:0.0.1
container_name: authentication-micro
ports:
- '8081:8081'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- weather-app-network
database-connect:
image: scapsulators/database-connect-service:0.0.1
container_name: database-connect
ports:
- '8082:8082'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- weather-app-network
# Utility DB Image
mongodb:
image: mongo:5.0
hostname: mongodb
container_name: mongodb
ports:
- '27017:27017'
environment:
- MONGO_INITDB_ROOT_USERNAME=PROJECT1-ADMIN
- MONGO_INITDB_ROOT_PASSWORD=Project1-ADS
networks:
- weather-app-network
networks:
weather-app-network:
name: weather-app-network
driver: bridge