forked from gip-inclusion/les-emplois
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
41 lines (37 loc) · 1017 Bytes
/
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
version: "3.7"
services:
# https://github.com/appropriate/docker-postgis
# https://hub.docker.com/r/mdillon/postgis/tags
postgres:
container_name: itou_postgres
env_file:
- ./envs/dev.env
build:
context: .
dockerfile: ./docker/dev/postgres/Dockerfile
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_data_backups:/backups
- ./docker/dev/postgres/psql_init.sh:/docker-entrypoint-initdb.d/postgres-init.sh
restart: always
ports:
- "${POSTGRES_PORT_ON_DOCKER_HOST:-5432}:5432"
django:
container_name: itou_django
env_file:
- ./envs/dev.env
- ./envs/secrets.env
depends_on:
- postgres
build:
context: .
dockerfile: ./docker/dev/django/Dockerfile
volumes:
# Mount the current directory into `/app` inside the running container.
- .:/app
restart: always
ports:
- "${DJANGO_PORT_ON_DOCKER_HOST:-8000}:8000"
volumes:
postgres_data:
postgres_data_backups: