-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
68 lines (63 loc) · 1.65 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
version: "3.8"
services:
db:
image: sagebionetworks/mongo:4.4.4
container_name: data-node-db
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_INITDB_DATABASE}
- MONGO_USERNAME=${MONGO_USERNAME}
- MONGO_PASSWORD=${MONGO_PASSWORD}
volumes:
- database-data:/data/db
networks:
- nlpsandbox-internal
data-node:
image: nlpsandbox/data-node:1.2.1
build:
context: server
dockerfile: Dockerfile
container_name: data-node
restart: always
# command: uwsgi --ini uwsgi.ini --lazy --http :8080 --processes 4
environment:
- SERVER_PROTOCOL=${SERVER_PROTOCOL}
- SERVER_DOMAIN=${SERVER_DOMAIN}
- SERVER_PORT=${SERVER_PORT}
- DB_PROTOCOL=${DB_PROTOCOL}
- DB_DOMAIN=db
- DB_PORT=${DB_PORT}
- DB_DATABASE=${DB_DATABASE}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
networks:
- nlpsandbox-internal
depends_on:
- db
data-node-nginx:
image: nginx:1.19.6-alpine
container_name: data-node-nginx
restart: always
environment:
- SERVER_HOST=data-node
- SERVER_PORT=${SERVER_PORT}
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/templates:/etc/nginx/templates:ro
networks:
- nlpsandbox
- nlpsandbox-internal
ports:
- "8080:80"
depends_on:
- data-node
volumes:
database-data:
networks:
nlpsandbox:
name: nlpsandbox
nlpsandbox-internal:
name: nlpsandbox-internal
internal: true