-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.19 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
version: '2'
services:
producer:
restart: always
build:
context: .
dockerfile: sequence_search/producer/Dockerfile
ports:
- "8002:8002"
depends_on:
- postgres
volumes:
- ./:/rnacentral
environment:
ENVIRONMENT: "DOCKER-COMPOSE"
POSTGRES_USER: docker
POSTGRES_PASSWORD: "example"
# the following options are used to connect to pdb debugger, running within the container
# to connect to it, run 'docker attach sequencesearchdevops_producer_1'
stdin_open: true
tty: true
# entrypoint: sleep infinity # replace entrypoint with this command, if you need to debug it
consumer:
restart: always
build:
context: .
dockerfile: sequence_search/consumer/Dockerfile
ports:
- "8000:8000"
- "8001:8001"
volumes:
- ./:/rnacentral
environment:
ENVIRONMENT: "DOCKER-COMPOSE"
HOST: "0.0.0.0"
PORT: "8000"
PRODUCER_HOST: "producer"
PRODUCER_PORT: "8002"
stdin_open: true
tty: true
depends_on:
- producer
# entrypoint: sleep infinity # if we need to debug
postgres:
restart: always
build: ./postgres
ports:
- "5432:5432"