-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.yml
More file actions
26 lines (22 loc) · 715 Bytes
/
local.yml
File metadata and controls
26 lines (22 loc) · 715 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
# Use postgres/example user/password credentials
version: '3.1'
services:
# https://hub.docker.com/_/postgres
# https://github.com/cookiecutter/cookiecutter-django
# https://cookiecutter-django.readthedocs.io/en/latest/developing-locally-docker.html
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: django-base-pro_production_postgres
container_name: django-base-pro_local_postgres
env_file:
- ./.envs/.local/.postgres
volumes:
- djangobasepro_postgres_data:/var/lib/postgresql/data
- djangobasepro_data_backups:/backups
ports:
- 5432:5432
volumes:
djangobasepro_postgres_data:
djangobasepro_data_backups: