-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
67 lines (64 loc) · 1.36 KB
/
local.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
65
66
67
version: '3'
services:
postgres:
image: postgres:11.6
container_name: test_postgres_service
ports:
- "5432:5432"
networks:
service:
aliases:
- postgres
django:
restart: always
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: test_asura_service
container_name: test_django_service
volumes:
- .:/app
ports:
- "8000:8000"
env_file:
- .envs/.local/.django
command: >
bash -c "python wait_for_postgres.py &&
./manage.py migrate &&
./manage.py runserver 0.0.0.0:8000"
networks:
service:
aliases:
- django
redis:
image: redis:latest
container_name: test_asura_redis
ports:
- "6379:6379"
networks:
service:
aliases:
- redis
celery:
build:
context: .
dockerfile: ./compose/local/celery/Dockerfile
image: test_asura_celery
container_name: test_asura_celery
volumes:
- .:/app
env_file:
- .envs/.local/.celery
- .envs/.local/.django
command: >
sh -c "/wait && celery -A asura worker --beat --scheduler django --loglevel=info"
environment:
WAIT_HOSTS: postgres:5432, redis:6379, django:8000
depends_on:
- redis
- postgres
- django
networks:
- service
networks:
service: