improve initial config

This commit is contained in:
Tchama 2021-02-18 18:11:04 +01:00
parent 00d6a6efbd
commit de5433b54c
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
# Comment if you want include Symfony project
app app
# Ignore Database datas
data data

View File

@ -4,8 +4,8 @@ services:
db: db:
image: postgres:12 image: postgres:12
volumes: volumes:
# comment to keep data in docker volumes # uncomment to keep data out of docker volumes
- ./data:/var/lib/postgresql/data # - ./data:/var/lib/postgresql/data
- ./docker_build/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d - ./docker_build/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment: environment:
- "POSTGRES_USER=postgres" - "POSTGRES_USER=postgres"