-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (78 loc) · 1.89 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
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
version: "3"
services:
staffshare-loadbalancer:
container_name: staffshare-loadbalancer
restart: always
build:
context: ./loadbalancer
dockerfile: ./Dockerfile
ports:
- "80:80"
volumes:
- ${PWD}/loadbalancer/nginx:/etc/nginx/:rw
depends_on:
- staffshare-api
- staffshare-web
networks:
- staffshare
staffshare-api:
container_name: staffshare-api
restart: always
environment:
- DB_NAME=staffshare
- STAFFSHARE_SERVER_PORT=5000
- MONGODB_URI=mongodb://staffshare-db:27017/staffshare
- STAFFSHARE_SERVER_ADDR=0.0.0.0
build:
context: ./backend-python
dockerfile: ./Dockerfile
volumes:
- ${PWD}/backend-python:/app/staffshare-api:rw
ports:
- "5000:5000"
depends_on:
- staffshare-db
networks:
- staffshare
staffshare-web:
container_name: staffshare-web
restart: always
build:
context: ./frontend
dockerfile: ./Dockerfile
volumes:
- ${PWD}/frontend:/app:rw
ports:
- "3000:3000"
depends_on:
- staffshare-db
environment:
- NEXT_PUBLIC_API_URL=https://test.staffshare.co
- NEXTAUTH_URL=https://test.staffshare.co
- NEXTAUTH_SECRET=${STAFFSHARE_NEXTAUTH_SECRET}
- GOOGLE_CLIENT_ID=${STAFFSHARE_GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${STAFFSHARE_GOOGLE_CLIENT_SECRET}
networks:
- staffshare
staffshare-db:
container_name: staffshare-db
image: "mongo:latest"
ports:
- "27017:27017"
volumes:
- ./data/db:/data/db
networks:
- staffshare
staffshare-db-ui:
container_name: staffshare-db-ui
image: "mongo-express:latest"
ports:
- "8081:8081"
environment:
- ME_CONFIG_MONGODB_SERVER=staffshare-db
- ME_CONFIG_MONGODB_PORT=27017
networks:
- staffshare
networks:
staffshare:
driver: bridge