-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
45 lines (43 loc) · 1.12 KB
/
docker-compose.prod.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
version: '3'
volumes:
static_volume:
services:
# db:
# image: postgres:12.0-alpine
# volumes:
# - postgres_data:/var/lib/postgresql/data/
# env_file:
# - .env.dev
# environment:
# - POSTGRES_DB=dna_tree
# - POSTGRES_USER=lakshan
# - POSTGRES_PASSWORD=lakshan
# ports:
# - 5432:5432
python: &python
build:
context: .
dockerfile: Dockerfile.prod
volumes:
- static_volume:/usr/src/app/staticfiles
expose:
- 8000
env_file:
- .env.prod
command: gunicorn app.wsgi:application --bind 0.0.0.0:8000
# rabbitmq:
# image: rabbitmq:3.7-alpine
celery_worker:
<<: *python
env_file:
- .env.prod
command: celery -A app --concurrency=1 worker -l info
ports: []
nginx:
build: ./nginx
volumes:
- static_volume:/usr/src/app/staticfiles
ports:
- 1337:1337
depends_on:
- python