-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose_dist.yml
executable file
·58 lines (55 loc) · 1.66 KB
/
docker-compose_dist.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
services:
# MongoDB Server
mongo_bioapi:
image: mongo:6.0.12
restart: always
container_name: bio_api_mongo_db
volumes:
- mongo_data:/data/db
- mongo_config:/data/configdb
# Uncomment if you want custom MongoDB config
# - ./config/mongo/mongod.conf:/etc/mongo/mongod.conf
environment:
MONGO_INITDB_ROOT_USERNAME: '' # Complete
MONGO_INITDB_ROOT_PASSWORD: '' # Complete
MONGO_INITDB_DATABASE: bio_api # Don't change this value!
deploy:
resources:
limits:
memory: 6g
# BioAPI server
web_bioapi:
image: omicsdatascience/bio-api:1.2.2
restart: always
volumes:
- bioapi_logs:/logs
depends_on:
- mongo_bioapi
environment:
DEBUG: 'false'
# MongoDB's credentials must be the same as 'mongo' service above
MONGO_HOST: 'mongo_bioapi' # Change if needed
MONGO_PORT: '27017' # Change if needed
MONGO_USER: '' # Complete
MONGO_PASSWORD: '' # Complete
MONGO_DB: bio_api # Don't change this value!
# NGINX server
nginx_bioapi:
image: nginx:1.23.3
restart: always
ports:
- '80:8000'
depends_on:
- web_bioapi
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
volumes:
mongo_data:
external: true
name: 'bio_api_mongo_data'
mongo_config:
external: true
name: 'bio_api_mongo_config'
bioapi_logs:
external: true
name: 'bio_api_logs'