-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 887 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 887 Bytes
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
# Config for development
services:
_django-image_build:
image: django-dev-image
build:
context: ./src/backend
command: ['echo', 'build completed'] # any linux command which directly terminates.
django:
image: django-dev-image
extends:
file: common-services.yml
service: django
command: sleep infinity
# command: gunicorn wsgi:application --bind 0.0.0.0:8000
depends_on:
- postgres
- _django-image_build
- rabbitmq
ports:
- ${DJANGO_HTTP_PORT:-8000}:8000
postgres:
extends:
file: common-services.yml
service: postgres
ports:
- 127.0.0.1:${POSTGRES_PORT:-5432}:5432
restart: unless-stopped
rabbitmq:
extends:
file: common-services.yml
service: rabbitmq
restart: unless-stopped
ports:
- 5672:5672
volumes:
postgres_data:
rabbitmq_data: