-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.01 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
version: "3"
services:
db:
container_name: database
image: postgres:11.2-alpine
restart: always
env_file: .env
volumes:
- ../ptrf-postgres-data:/var/lib/postgresql/data
ports:
- 5434:5432
api_ptrf:
container_name: api-ptrf
build: .
env_file:
- .env
# image: api_ptrf
#command: "gunicorn config.wsgi:application --bind=0.0.0.0:8001 -w 8"
command: "python manage.py runserver 0.0.0.0:8001"
ports:
- 8001:8001
depends_on:
- db
- redis_ptrf
volumes:
- ./staticfiles:/code/staticfiles
links:
- db:db
celery_ptrf:
build: .
container_name: celery-ptrf
restart: always
# image: api_ptrf
command: "celery -A config worker --loglevel=info --concurrency=3 -n worker1@%h"
env_file: .env
depends_on:
- redis_ptrf
redis_ptrf:
image: redis:5.0
container_name: redis-ptrf
restart: always
ports:
- "6380:6379"
networks:
default:
external:
name: ptrf-network