-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (59 loc) · 1.28 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
version: "3.9"
services:
game_profile:
container_name: game_profile
build:
dockerfile: Dockerfile
context: ./game_profiles
ports:
- "8000:8000"
environment:
PORT: 8000
MONGO_PROTOCOL: mongodb
MONGO_URI: mongo:27017
MONGO_USERNAME: root
MONGO_PASSWORD: password
depends_on:
- db
profile_overview:
container_name: profile_overview
build:
dockerfile: Dockerfile
context: ./profile_overview
ports:
- "5000:5000"
environment:
PORT: 5000
MONGO_PROTOCOL: mongodb
MONGO_URI: mongo:27017
MONGO_USERNAME: root
MONGO_PASSWORD: password
depends_on:
- db
profile_achievements:
container_name: profile_achievements
build:
dockerfile: Dockerfile
context: ./profile_achievements
ports:
- "6000:6000"
environment:
PORT: 6000
MONGO_PROTOCOL: mongodb
MONGO_URI: mongo:27017
MONGO_USERNAME: root
MONGO_PASSWORD: password
depends_on:
- db
db:
container_name: mongo
image: mongo:latest
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: 'root'
MONGO_INITDB_ROOT_PASSWORD: 'password'
volumes:
- mongodb_data:/data/db
volumes:
mongodb_data: