-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 920 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
version: '3.9'
services:
solver:
container_name: solver
build: ./solver
ports:
- 8080:8080
tty: true
volumes:
- ./solver:/workspace:cached
environment:
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
depends_on:
- db
db:
container_name: db
image: mongo:8
restart: always
ports:
- 27017:27017
tty: true
volumes:
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
MONGO_INITDB_DATABASE: shiftplanner_solver
TZ: Asia/Tokyo
web:
container_name: web
image: nginx
ports:
- 3000:80
volumes:
- ./web/shiftplanner:/usr/share/nginx/html:cached
- ./web/config/nginx.conf:/etc/nginx/conf.d/default.conf
tty: true
depends_on:
- solver