-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-test.yml
57 lines (56 loc) · 1.15 KB
/
docker-compose-test.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
version: '3'
services:
sqs:
build:
context: ./local_queue
volumes:
- ./local_queue/elasticmq.conf:/elasticmq.conf
ports:
- 9324:9324
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_DB: bounties
volumes:
- psql_bounties:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: "redis"
volumes:
- redis_bounties:/data
ports:
- "6379:6379"
bounties_api:
build:
context: ./bounties_api
dockerfile: Dockerfile
restart: always
env_file:
- .env
command: bash -c "python3 manage.py makemigrations && python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:83"
volumes:
- ./bounties_api:/code
ports:
- "8000:83"
depends_on:
- db
- redis
contract_subscriber:
build:
context: ./contract_subscriber
restart: always
env_file:
- .env
command: npm start
volumes:
- ./contract_subscriber:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- redis
volumes:
psql_bounties:
external: true
redis_bounties:
external: true