-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
62 lines (54 loc) · 1.04 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
version: '3'
volumes:
dev_postgres_data: {}
services:
django: &django
build:
context: .
dockerfile: ./config/dev/django/Dockerfile
image: animehub_dev_django
volumes:
- ./:/app
depends_on:
- postgres
- redis
env_file:
- .env
backend:
<<: *django
image: animehub_dev_backend
ports:
- 8000:8000
command: ./manage.py runserver 0.0.0.0:8000
nuxt:
build:
context: .
dockerfile: ./config/dev/nuxt/Dockerfile
image: animehub_dev_nuxt
volumes:
- ./:/app
env_file:
- .env
ports:
- 3000:3000
command: yarn dev
postgres:
image: postgres:10
volumes:
- dev_postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
env_file:
- .env
redis:
image: redis:3.2
ports:
- 6379:6379
celeryworker:
<<: *django
image: animehub_dev_celeryworker
command: /start-celeryworker
celerybeat:
<<: *django
image: animehub_dev_celerybeat
command: /start-celerybeat