forked from Kilio22/Area
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 935 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
55
56
version: "3"
services:
server:
build: ./server
depends_on:
- db
environment:
- SERVER_PORT=8080
- CLIENT_WEB_PORT=8081
- MONGO_HOST=db
- MONGO_PORT=27017
- MONGO_USER=hein
- MONGO_PASSWORD=ilnesarreteplus
- MONGO_DEFAULT=area-prod
ports:
- "8080:8080"
networks:
- back-tier
client_mobile:
build: ./mobile
depends_on:
- server
volumes:
- common:/apk
client_web:
build: ./front
depends_on:
- server
- client_mobile
ports:
- "8081:8081"
volumes:
- common:/apk
db:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- db-data:/data/db
networks:
- back-tier
environment:
- MONGO_INITDB_ROOT_USERNAME=hein
- MONGO_INITDB_ROOT_PASSWORD=ilnesarreteplus
restart: unless-stopped
networks:
back-tier:
volumes:
common:
db-data: