-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (46 loc) · 1.15 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
version: "3.3"
services:
flapjack_api:
container_name: api
restart: always
build: .
volumes:
- .:/var/app/flap
expose:
- "8000"
ports:
- "8000:8000"
depends_on:
- db
#command: gunicorn --certfile=cert/fullchain.pem --keyfile=cert/privkey.pem flapjack_api.wsgi:application
# command: gunicorn -w 4 -b 0.0.0.0:8000 flapjack_api.wsgi
command: gunicorn flapjack_api.asgi:application -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 --timeout 3600
# command: daphne -b 0.0.0.0 -p 8000 flapjack_api.asgi:application
# command: uvicorn flapjack_api.asgi:application --port 8000 --reload
# command: python manage.py runserver 0.0.0.0:8000
db:
container_name: db
restart: always
image: postgres:12.1
ports:
- "5432:5432"
environment:
POSTGRES_DB: registry
POSTGRES_USER: guillermo
POSTGRES_PASSWORD: 123456
volumes:
- db:/var/pg/data
redis:
image: redis
volumes:
- redis:/data
ports:
- 6379
healthcheck:
test: redis-cli ping
interval: 5m
timeout: 30s
retries: 30
volumes:
redis:
db: