-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
61 lines (56 loc) · 977 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
58
59
60
61
version: "3"
services:
db:
image: postgres
container_name: db_fatcode
volumes:
- db_fatcode_vol:/var/lib/postgresql/data
env_file:
- .env.dev
ports:
- 5432:5432
web:
build: .
container_name: fatcode
command: >
sh -c "python manage.py runserver 0.0.0.0:8000"
ports:
- 8000:8000
volumes:
- ./:/app
depends_on:
- db
env_file:
- .env.dev
# redis:
# image: redis:alpine
# ports:
# - "6379:6379"
#
# celery:
# restart: always
# build:
# context: .
# command: celery -A fatcode worker -l info
# env_file:
# - .env.dev
# volumes:
# - ./:/app
# depends_on:
# - redis
# - web
#
# celery-beat:
# build: .
# command: celery -A fatcode beat -l info
# volumes:
# - ./:/usr/src/app/
# env_file:
# - .env.dev
# depends_on:
# - redis
# - db
# - web
# - celery
volumes:
db_fatcode_vol: