-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (56 loc) · 1.16 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
version: "3"
services:
server:
build: ./COD_stats_server
container_name: COD_stats_server
restart: always
ports:
- "8080:8080"
networks:
- back
volumes:
- ./COD_stats_server/src:/app/src
- ./COD_stats_server/swagger.yaml:/app/swagger.yaml
- /app/node_modules
env_file:
- config.env
client:
build: ./COD_stats_client
container_name: COD_stats_client
restart: always
ports:
- "8081:8081"
networks:
- back
volumes:
- ./COD_stats_client/src:/app/src
environment:
CHOKIDAR_USEPOLLING: "true"
env_file:
- config.env
api_database:
image: mongo
container_name: "api_database"
volumes:
- ./api-db-volume:/data/db/
ports:
- "127.0.0.1:27017:27017"
networks:
- back
restart: always
database_express:
image: mongo-express
ports:
- "5000:8081"
env_file:
- config.env
environment:
ME_CONFIG_MONGODB_SERVER: api_database
ME_CONFIG_MONGODB_URL: mongodb://api_database:27017
networks:
- back
logging:
driver: none
networks:
back:
driver: bridge