forked from YichiRockyZhang/annotation-game
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (60 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
66 lines (60 loc) · 1.3 KB
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
58
59
60
61
62
63
64
65
66
services:
nginx:
build: ./nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
links:
- "web:web"
volumes:
- "web-static:/usr/src/app/static"
web:
build: ./web
expose:
- 8000
links:
- "redis:redis"
# - "postgres:postgres"
volumes:
- web-static:/usr/src/app/static
env_file: .env
command: bash -c "
celery -A quizbowl worker --loglevel=ERROR &
python manage.py collectstatic --noinput --clear &&
daphne -b 0.0.0.0 -p 8000 quizbowl.asgi:application"
depends_on:
- redis
# - postgres
redis:
image: redis:latest
expose:
- 6379
volumes:
- "redisdata:/data"
# celery:
# build:
# context: .
# dockerfile: ./web/Dockerfile.celery
# container_name: celery
# command: celery -A quizbowl worker -q
# volumes:
# - .:/app
# depends_on:
# - web
# - redis
# Commented out because using an AWS RDS Database instead of a container
# postgres:
# image: postgres:latest
# expose:
# - 5432
# env_file: .env
# environment:
# - POSTGRES_USER=${DB_USER}
# - POSTGRES_PASSWORD=${DB_PASS}
# volumes:
# - pgdata:/var/lib/postgresql/data/
volumes:
web-static:
redisdata:
# pgdata: