-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dev.yml
75 lines (66 loc) · 1.54 KB
/
docker-compose-dev.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
version: '3'
services:
bioG_mongo:
image: mongo:5.0.3
container_name: "${DB_HOST}"
env_file:
- .env
volumes:
- ./mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
# - ./mongo-restore.sh:/docker-entrypoint-initdb.d/mongo-restore.sh
# - ./db-dump:/db-dump
- mongodb-data:${MONGODB_DATA_DIR}
ports:
- "27015:${DB_PORT}"
biogenome_server:
build: ./server
container_name: "biogenome_server"
restart: always
volumes:
- ./server:/server
- ${ANNOTATIONS_PATH}:/annotations_data
env_file:
- .env
depends_on:
- redis
biogenome_cron:
build: ./cronjobs
container_name: biogenome_cron
env_file:
- .env
biogenome_nginx:
build:
context: ./biogenome-client
dockerfile: Dockerfile
args:
- ROOT_NODE=$ROOT_NODE
- PROJECT_ACCESSION=$PROJECT_ACCESSION
- CESIUM_TOKEN=$CESIUM_TOKEN
container_name: "biogenome_nginx"
restart: always
volumes:
- ./biogenome-client:/biogenome-client
- node_modules:/biogenome-client/node_modules
environment:
- API_PORT=${API_PORT}
- API_HOST=${API_HOST}
ports:
- "91:${API_PORT}"
celery:
build: ./server
command: celery --app app.celery_app worker --loglevel=info --autoscale=2,1
restart: always
volumes:
- ./server:/server
env_file:
- .env
depends_on:
- biogenome_server
- bioG_mongo
- redis
redis:
image: "redis:alpine"
volumes:
app:
mongodb-data:
node_modules: