-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
78 lines (77 loc) · 1.61 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
services:
db:
image: postgres:latest
hostname: db
restart: always
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
image: redis
hostname: redis
nginx:
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-nginx
volumes:
- static:/vol/tradero/static
ports:
- "80:80"
depends_on:
- instance
instance:
hostname: instance
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-instance
env_file:
- ./dockerfiles/.env_file
volumes:
- static:/vol/tradero/static
depends_on:
- db
- redis
links:
- db:db
- redis:redis
worker-bots:
hostname: worker
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-worker
env_file:
- ./dockerfiles/.env_file
command: pipenv run celery -A tradero worker -l INFO -Q bots -P threads
volumes:
- static:/vol/tradero/static
depends_on:
- db
- redis
- instance
links:
- db:db
- redis:redis
worker-symbols:
hostname: worker
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-worker
env_file:
- ./dockerfiles/.env_file
command: pipenv run celery -A tradero worker -l INFO -Q symbols -P threads
volumes:
- static:/vol/tradero/static
depends_on:
- db
- redis
- instance
links:
- db:db
- redis:redis
volumes:
static:
postgres_data: