generated from Wang-Bioinformatics-Lab/Flask_Website_Basic_Template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (55 loc) · 1.22 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
version: '3'
services:
redu-gnps2-web:
build:
context: .
dockerfile: Dockerfile
container_name: redu-gnps2-web
volumes:
- ./logs:/app/logs:rw
- ./database:/app/database:rw
- ./workflows:/app/workflows:ro
ports:
- "5934:5000"
networks:
- default
- nginx-net
restart: unless-stopped
command: /app/run_server.sh
environment:
VIRTUAL_HOST: redu.gnps2.org
VIRTUAL_PORT: 5000
LETSENCRYPT_HOST: redu.gnps2.org
LETSENCRYPT_EMAIL: [email protected]
redu-gnps2-worker:
build:
context: .
dockerfile: Dockerfile
container_name: redu-gnps2-worker
volumes:
- ./logs:/app/logs:rw
- ./workflows:/app/workflows:rw
command: /app/run_worker.sh
restart: unless-stopped
depends_on:
- redu-gnps2-redis
- redu-gnps2-rabbitmq
networks:
- default
- nginx-net
redu-gnps2-rabbitmq:
container_name: redu-gnps2-rabbitmq
image: rabbitmq
restart: unless-stopped
networks:
- default
redu-gnps2-redis:
container_name: redu-gnps2-redis
image: redis
restart: unless-stopped
networks:
- default
networks:
nginx-net:
external:
name: nginx-net