-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
49 lines (45 loc) · 1.32 KB
/
docker-compose.yaml
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
# version: "3.7"
# services:
db:
image: mdillon/postgis:10-alpine@sha256:41516e866f9ec84a7c348084e02b577961cc5bca7c827d91b4566f0f729f370c
restart: always
env_file:
- ./docker-data/secret.env
environment:
PGDATA: /var/lib/postgresql/data/PGDATA
volumes:
- ./docker-data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
cache:
image: redis:5.0.3-alpine@sha256:f8c22abc77f3f9cc1c2516062e4a2a71375859d7922da3faf9e4160e6ba4c3c2
restart: always
web:
build: ./app
command: python manage.py runserver 0:8080
# # command: "uwsgi --http :8080 --wsgi-file buoy_barn/wsgi.py --master --processes 4 --threads 2"
# command: "uwsgi --module=buoy_barn.wsgi:application --master --pidfile=/tmp/project-master.pid --http :8080 --uid=1000 --gid=2000 --max-requests=5000 --vacuum --processes 4"
# # command: "gunicorn --bind 0.0.0.0:8080 buoy_barn.wsgi:application"
restart: always
volumes:
- ./app:/app
- ./.prospector.yaml:/app/.prospector.yaml
- ./docker-data/django-static:/static
ports:
- "8080:8080"
environment:
DJANGO_MANAGEPY_COLLECTSTATIC: "on"
env_file:
- ./docker-data/secret.env
links:
- db
- cache
celery-worker:
build: ./app
command: celery -A buoy_barn worker -l info
restart: always
env_file:
- ./docker-data/secret.env
links:
- db
- cache