-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (39 loc) · 978 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
version: "3.8"
services:
mancala-db:
image: mongo
restart: unless-stopped
env_file: ./.env
ports:
- $MONGO_LOCAL_PORT:$MONGO_DOCKER_PORT
volumes:
- db:/var/lib/mysql
mancala-frontend:
build:
context: services/mancala-frontend
dockerfile: Dockerfile
volumes:
- ./config.json:/usr/share/nginx/html/assets/config.json
restart: on-failure
env_file: ./.env
ports:
- $FRONTEND_LOCAL_PORT:$FRONTEND_DOCKER_PORT
mancala-backend:
depends_on:
- mancala-db
build:
context: services/mancala-backend
dockerfile: Dockerfile
restart: on-failure
env_file: ./.env
ports:
- $BACKEND_LOCAL_PORT:$BACKEND_DOCKER_PORT
environment:
SPRING_APPLICATION_JSON: '{
"spring.data.mongodb.uri" : "mongodb://mancala-db:$MONGO_LOCAL_PORT",
"spring.data.mongodb.database" : "mancala_mongo"
}'
links:
- mancala-db
volumes:
db: