-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (67 loc) · 1.5 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
version: "3"
services:
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./etc/nginx:/etc/nginx/conf.d
- static_volume:/app/var/www/static:rw
networks:
- main
depends_on:
- web
web:
build: .
env_file: $PWD/.env
command: /bin/sh -c "gunicorn rummage.wsgi:application --config file:rummage/gunicorn.py"
expose:
- "8000"
volumes:
- static_volume:/app/var/www/static:rw
networks:
- main
depends_on:
- rabbitmq
- postgres
worker_general:
build: .
env_file: $PWD/.env
command: /bin/sh -c "celery -A rummage.celery worker --loglevel=INFO --concurrency=1 -Q general-${CELERY_ID}"
networks:
- main
depends_on:
- rabbitmq
- postgres
scheduler:
build: .
env_file: $PWD/.env
command: /bin/sh -c "celery -A rummage.celery worker --beat --loglevel=INFO --pidfile= --concurrency=1 -Q dummy-queue-${CELERY_ID}"
networks:
- main
depends_on:
- rabbitmq
- postgres
postgres:
image: postgres:13.6
environment:
POSTGRES_DB: '${POSTGRES_DB}'
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
volumes:
- postgres_volume:/var/lib/postgresql/data
networks:
main:
aliases:
- postgres
rabbitmq:
image: rabbitmq:3-management
networks:
main:
aliases:
- rabbitmq
volumes:
postgres_volume:
static_volume:
networks:
main: