Add volume on postgres docker

This commit is contained in:
Vincent 2019-04-17 17:14:44 +02:00
parent 323ea0dad9
commit 54576a4d9b

View file

@ -1,7 +1,6 @@
version: '3' version: '3'
services: services:
postgres: postgres:
container_name: mobilizon_db container_name: mobilizon_db
restart: unless-stopped restart: unless-stopped
@ -9,6 +8,9 @@ services:
environment: environment:
POSTGRES_PASSWORD: postgres POSTGRES_PASSWORD: postgres
POSTGRES_DB: mobilizon_dev POSTGRES_DB: mobilizon_dev
volumes:
- pgdata:/var/lib/postgresql/data
front: front:
container_name: mobilizon_front container_name: mobilizon_front
@ -43,3 +45,6 @@ services:
MOBILIZON_DATABASE_DBNAME: mobilizon_dev MOBILIZON_DATABASE_DBNAME: mobilizon_dev
MOBILIZON_DATABASE_HOST: postgres MOBILIZON_DATABASE_HOST: postgres
entrypoint: entrypoint entrypoint: entrypoint
volumes:
pgdata:
.: