-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (58 loc) · 1.35 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
version: "3.9"
services:
delay-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: ${STAGE}
volumes:
- "/delay-frontend/node_modules"
- "./frontend:/delay-frontend"
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: ${STAGE}
volumes:
- "/delay-backend/env"
- "./backend:/delay-backend"
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: ${STAGE}
dockerfile: Dockerfile
args:
ARG_USER: ${DB_USER}
ARG_PASS: ${DB_PASS}
ARG_HOST: ${DB_HOST}
ARG_DB: ${DB_TO_USE}
volumes:
- ./tool:/delay-tool
ports:
- "5011:5011"
working_dir: /delay-tool