-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (56 loc) · 988 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
app:
build:
context: .
ports:
- "8002:8000"
networks:
- netapp
volumes:
- .:/app
command: python manage.py runserver 0.0.0.0:8000
# command: daphne bagchat.asgi:application -p 8000 -b 0.0.0.0 --proxy-headers
env_file:
- .env
depends_on:
- db
db:
image: postgres:10-alpine
volumes:
- pgdata:/var/lib/postgresql/data
env_file:
- .env
ports:
- 5433:5432
networks:
- netapp
adminer:
image: adminer
restart: always
ports:
- 8003:8080
networks:
- netapp
depends_on:
- db
volumes:
pgdata:
networks:
netapp:
driver: bridge
# redis:
# image: redis:alpine
# celery:
# restart: always
# build:
# context: .
# command: celery -A bagchat worker -l info
# volumes:
# - . :/app
# env_file:
# - .env
# depends_on:
# - db
# - redis
# - app