-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
84 lines (75 loc) · 1.69 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
services:
nginx:
container_name: wfinstances-browser-nginx
depends_on:
- ui
build:
context: ./nginx
args:
PORT: ${NGINX_PORT}
SERVER_NAME: ${NGINX_SERVER_HOSTNAME}
secrets:
- nginx_certificate
- nginx_private_key
ports:
- ${NGINX_PORT}:${NGINX_PORT}
networks:
- nginx-network
ui:
container_name: wfinstances-browser-ui
build: ./ui
depends_on:
- api
environment:
- PORT=8080
- API_BASE_URL=http://api:8081
ports:
- 127.0.0.1:8080:8080
networks:
- nginx-network
api:
container_name: wfinstances-browser-api
depends_on:
- mongodb
# - wrench
build:
context: ./api
args:
WFINSTANCES_CRAWL_PERIOD_IN_DAYS: ${WFINSTANCES_CRAWL_PERIOD_IN_DAYS}
environment:
- MONGO_URI=mongodb://mongodb:27017/?retryWrites=true&w=majority
- NGINX_SERVER_HOSTNAME=${NGINX_SERVER_HOSTNAME}
ports:
- 127.0.0.1:8081:8081
networks:
- nginx-network
mongodb:
container_name: wfinstances-browser-mongodb
image: mongo:5.0.26
ports:
- 27017:27017
environment:
MONGO_INITDB_DATABASE: wf_instance_browser_db
volumes:
- ~/mongodata:/data/db
networks:
- nginx-network
# wrench:
# container_name: wfinstances-browser-wrench
# build: ./wrench
# ports:
# - 127.0.0.1:2345:2345
# - 127.0.0.1:1237:1237
# networks:
# - nginx-network
secrets:
nginx_certificate:
file: ${NGINX_SSL_CERTIFICATE_PATH:-/dev/null}
nginx_private_key:
file: ${NGINX_SSL_PRIVATE_KEY_PATH:-/dev/null}
volumes:
db:
networks:
nginx-network:
name: nginx-network
driver: bridge