-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (52 loc) · 952 Bytes
/
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
---
version: '3.8'
name: chat_rpg
services:
redis:
container_name: redis-rpg
image: redis:latest
ports:
- 6379:6379
restart: always
volumes:
- redis-data:/data
networks:
- rpg-network
mongodb:
container_name: mongo-rpg
image: mongo:latest
ports:
- 27017:27017
volumes:
- ./server/src/config/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- mongo-data:/data/db
networks:
- rpg-network
env_file:
- ./server/.env
api:
container_name: api-rpg
build:
context: .
dockerfile: ./server/Dockerfile
restart: always
env_file:
- ./server/.env
depends_on:
- redis
- mongodb
ports:
- 5000:5000
- 5001:5001
networks:
- rpg-network
volumes:
mongo-data:
external: false
redis-data:
external: false
networks:
rpg-network:
driver: bridge
external: false
...