-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
53 lines (50 loc) · 1.14 KB
/
docker-compose.prod.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
version: "3.9"
services:
delay-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: prod
environment:
- ENV_USER=${DB_USER}
- ENV_PASS=${DB_PASS}
- ENV_HOST=${DB_HOST}
- ENV_DB=${DB_TO_USE}
ports:
- "3000:3000"
delay-backend:
build:
context: ./backend
dockerfile: Dockerfile
target: prod
environment:
- ENV_USER=${DB_USER}
- ENV_PASS=${DB_PASS}
- ENV_HOST=${DB_HOST}
- ENV_DB=${DB_TO_USE}
ports:
- "5000:5000"
delay-db:
restart: always
build: ./database
environment:
- MONGO_INITDB_ROOT_USERNAME=${DB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASS}
- MONGO_INITDB_DATABASE=${DB_TO_USE}
volumes:
- ./database/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
ports:
- "27017:27017"
delay-tool:
build:
context: ./tool
target: prod
dockerfile: Dockerfile
args:
ARG_USER: ${DB_USER}
ARG_PASS: ${DB_PASS}
ARG_HOST: ${DB_HOST}
ARG_DB: ${DB_TO_USE}
ports:
- "5011:5011"
working_dir: /delay-tool