-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 1.25 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
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3'
volumes:
pgdata:
redisdata:
localstack:
services:
db:
image: postgres
restart: always
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data/
redis:
image: redis
restart: always
ports:
- "6379:6379"
volumes:
- redisdata:/var/lib/redis/
localstack-s3:
image: localstack/localstack:0.8.7
environment:
- SERVICES=s3:5000
- DEFAULT_REGION=us-east-1
- HOSTNAME=localstack-s3
- DATA_DIR=/tmp/localstack/data
ports:
- "5000:5000"
volumes:
- localstack:/tmp/localstack/data
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
environment:
- DB_NAME=postgres
- DB_USER=postgres
- DB_HOST=db
- DJANGO_SETTINGS_MODULE=pycon.settings.dev
- REDIS_HOST=redis
volumes:
- .:/code
ports:
- "8000:8000"
depends_on:
- db
- redis
worker:
build: .
command: celery -A pycon worker --autoreload --beat
environment:
- C_FORCE_ROOT=1
- DB_NAME=postgres
- DB_USER=postgres
- DB_HOST=db
- DJANGO_SETTINGS_MODULE=pycon.settings.dev
- REDIS_HOST=redis
volumes:
- .:/code
depends_on:
- db
- redis