-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
121 lines (114 loc) · 2.93 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
services:
metadata:
container_name: plasticome_metadata
# build:
# context: ./plasticome-metadata
# dockerfile: Dockerfile
image: correiaeduardo/plasticome-metadata:final-1
environment:
- C_FORCE_ROOT=true
- FLASK_RUN_HOST=metadata
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- DATABASE_NAME=${DATABASE_NAME}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_HOST=${DATABASE_HOST}
restart: always
ports:
- "5001:5000"
volumes:
- data:/metadata
- ./plasticome-metadata:/app
depends_on:
- postgres
networks:
- plasticome
# - internal
backend:
container_name: plasticome_backend
build:
context: ./plasticome-backend
dockerfile: Dockerfile
privileged: true
environment:
- DOCKER_HOST=tcp://localhost:2375
- ENTREZ_EMAIL=mestre197@gmail.com
- RABBIT_MQ_URL=amqp://guest:guest@plasticome_rabbitmq:5672//
- CELERY_BROKER_URL=amqp://guest:guest@plasticome_rabbitmq:5672//
- RESULT_BACKEND=redis://plasticome_redis:6379/0
- PLASTICOME_METADATA_URL=http://metadata:5000/
- C_FORCE_ROOT=true
- FLASK_RUN_HOST=backend
- PLASTICOME_USER=${PLASTICOME_USER}
- PLASTICOME_PASSWORD=${PLASTICOME_PASSWORD}
- MAIL_USER=${MAIL_USER}
- MAIL_SERVER=${MAIL_SERVER}
- MAIL_SECRET=${MAIL_SECRET}
- MAIL_ACCESS_PORT=${MAIL_ACCESS_PORT}
restart: always
ports:
- "5002:5000"
depends_on:
- rabbitmq
- metadata
volumes:
- data:/backend
- ./plasticome-backend/plasticome:/app/plasticome
- ./temp_genomes:/app/temp_genomes
networks:
- plasticome
# - internal
rabbitmq:
container_name: plasticome_rabbitmq
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_VHOST=
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
depends_on:
- redis
networks:
- plasticome
# - internal
volumes:
- rabbitmq_data:/data
redis:
container_name: plasticome_redis
image: redis
ports:
- "6379:6379"
networks:
- plasticome
# - internal
volumes:
- redis_data:/data
postgres:
container_name: plasticome_postgres
image: postgres
volumes:
- ./pg_data:/var/lib/postgresql/data
- ./plasticome-metadata/scripts:/scripts
- ./plasticome-metadata/dump/plasticome-psql-v1.sql.lzo:/dump/plasticome-psql-v1.sql.lzo
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "33805:5432"
networks:
- plasticome
# - internal
networks:
plasticome:
driver: bridge
# internal:
# external: true
volumes:
data:
rabbitmq_data:
pg_data:
redis_data: