generated from akshat2602/django-nextjs-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
63 lines (57 loc) · 1.03 KB
/
docker-compose.dev.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
version: "3"
services:
server:
container_name: server
build:
context: ./server
stdin_open: true
tty: true
working_dir: /src
ports:
- "8000:8000"
volumes:
- ./server:/src
- run_vol:/var/run
- cache_vol:/var/cache
- tmp_vol:/tmp
env_file:
- .env.dev
command: >
sh -c "sh migrations.sh && python manage.py runserver 0.0.0.0:8000"
depends_on:
- db
db:
container_name: db
image: postgres
env_file:
- .env.dev
redis:
container_name: redis
image: redis:alpine
celery:
container_name: celery
restart: always
build:
context: ./server
command: celery -A server worker -l info
volumes:
- ./server:/server
env_file:
- .env.dev
depends_on:
- db
- redis
- server
volumes:
run_vol:
driver_opts:
type: tmpfs
device: tmpfs
cache_vol:
driver_opts:
type: tmpfs
device: tmpfs
tmp_vol:
driver_opts:
type: tmpfs
device: tmpfs