-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
52 lines (48 loc) · 1.16 KB
/
docker-compose.dev.yaml
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
version: "3"
services:
app:
image: csirt-backend
build:
context: .
dockerfile: ./Dockerfile.dev
restart: on-failure
ports:
- 8000:8000
volumes:
- ./:/usr/src/app
command: >
bash -c "
python manage.py migrate && \
python manage.py collectstatic --noinput && \
gunicorn csirt.wsgi:application -w 2 -b 0.0.0.0:8000 --reload"
environment:
LAUNCH_TYPE: webserver
DB_HOST: postgres
DB_USER: postgres
DB_PASSWORD: password
DB_NAME: csirt_db
DB_PORT: 5432
DB_ENGINE: django.db.backends.postgresql
depends_on:
- postgres
networks:
- csirt_network
postgres:
image: postgres
restart: always
ports:
- "5434:5432"
environment:
- POSTGRES_DB=csirt_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
command: ["postgres", "-c", "max_connections=200", "-c", "timezone=Etc/UTC", "-c", "default_text_search_config=pg_catalog.english"]
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- csirt_network
volumes:
postgres-data:
networks:
csirt_network:
driver: bridge