-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
116 lines (109 loc) · 3.63 KB
/
docker-compose.dev.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
105
106
107
108
109
110
111
112
113
114
115
116
version: '3.7'
services:
api-admin:
build:
context: ./API/admin
dockerfile: dev.Dockerfile
restart: always
volumes:
- ./API/admin:/admin
ports:
- "7000:7000"
command: ./mvnw spring-boot:run
depends_on:
- api-games
- api-iam
- api-files
api-games:
build:
context: ./API/games
dockerfile: dev.Dockerfile
restart: always
env_file:
- ./secrets/games/MONGO_CONNECTION_STRING.env
volumes:
- ./API/games:/games
# Use if should be available on host
ports:
- "9000:9000"
command: sbt run
# Use sbt in interactive mode during development
# 1. docker exec -it bobauth_api-games_1 /bin/bash
# 2. $ sbt
# 3. [games] $ run
#command: sleep 36000
depends_on:
- data-games
api-home:
build:
context: ./API/home
dockerfile: dev.Dockerfile
restart: always
volumes:
- ./API/home:/home
ports:
- "3000:3000"
command: npm start
depends_on:
- api-games
- api-iam
- api-files
api-iam:
build:
context: ./API/iam
dockerfile: dev.Dockerfile
restart: always
volumes:
- ./API/iam:/iam
- ./secrets/iam/POSTGRES_PASSWORD:/secrets/POSTGRES_PASSWORD
- ./secrets/iam/SECRET_KEY:/secrets/SECRET_KEY
# Use if should be available on host
ports:
- "8000:8000"
command: python3 -u manage.py runserver 0.0.0.0:8000
depends_on:
- data-iam
api-files:
build:
context: ./API/files
dockerfile: dev.Dockerfile
restart: always
volumes:
- ./API/files:/app
- ./data/files/gameFiles:/uploads
# Use if should be available on host
ports:
- "9090:9090"
command: lein run
data-games:
build:
context: ./data/games
dockerfile: dev.Dockerfile
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME_FILE: /secrets/MONGO_INITDB_ROOT_USERNAME
MONGO_INITDB_ROOT_PASSWORD_FILE: /secrets/MONGO_INITDB_ROOT_PASSWORD
MONGO_INITDB_DATABASE: games
MONGO_NON_ROOT_USERNAME_FILE: /secrets/MONGO_NON_ROOT_USERNAME
MONGO_NON_ROOT_PASSWORD_FILE: /secrets/MONGO_NON_ROOT_PASSWORD
volumes:
- ./secrets/games/MONGO_INITDB_ROOT_USERNAME:/secrets/MONGO_INITDB_ROOT_USERNAME
- ./secrets/games/MONGO_INITDB_ROOT_PASSWORD:/secrets/MONGO_INITDB_ROOT_PASSWORD
- ./secrets/games/MONGO_NON_ROOT_USERNAME:/secrets/MONGO_NON_ROOT_USERNAME
- ./secrets/games/MONGO_NON_ROOT_PASSWORD:/secrets/MONGO_NON_ROOT_PASSWORD
- ./data/games/db:/data/db
- ./data/games/initMongoGamesDB.sh:/docker-entrypoint-initdb.d/initMongoGamesDB.sh
data-iam:
build:
context: ./data/iam
dockerfile: dev.Dockerfile
restart: always
environment:
POSTGRES_USERNAME_FILE: /secrets/POSTGRES_USERNAME
POSTGRES_PASSWORD_FILE: /secrets/POSTGRES_PASSWORD
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: iam
volumes:
- ./secrets/iam/POSTGRES_USERNAME:/secrets/POSTGRES_USERNAME
- ./secrets/iam/POSTGRES_PASSWORD:/secrets/POSTGRES_PASSWORD
- ./data/iam/db:/var/lib/postgresql/data