-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
40 lines (38 loc) · 1013 Bytes
/
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
version: '3'
x-fcapp-defaults:
&fcapp_defaults
build: .
restart: unless-stopped
environment:
- DJANGO_SETTINGS_MODULE=fc_project.settings
- CELERY_TASK_ALWAYS_EAGER=0
- CELERY_BROKER_URL=redis://redis:6379/0
- MEDIA_ROOT=/data
- SECRET_KEY
volumes:
- ./db.sqlite3:/project/db.sqlite3
- ./data:/data
depends_on:
- redis
links:
- redis
services:
nginx:
image: nginxinc/nginx-unprivileged
volumes:
- ./src/fc_project/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./data:/data
ports:
- "127.0.0.1:8080:8080"
links:
- web
web:
<<: *fcapp_defaults
command: gunicorn --access-logfile=- --error-logfile=- --log-level=info --workers 3 -b 0.0.0.0:8000 fc_project.wsgi:application
ports:
- "127.0.0.1:5000:8000"
worker:
<<: *fcapp_defaults
command: celery -A fc_project worker -Q celery,document -l DEBUG --without-gossip --without-mingle --without-heartbeat
redis:
image: "redis:alpine"