Migrate postgresql and improve skeleton

This commit is contained in:
2022-10-10 12:42:22 +02:00
parent f7f87766e3
commit 1307ae914d
3 changed files with 7 additions and 3 deletions

View File

@@ -18,6 +18,8 @@ services:
- PHP_FPM_USER=1000
- PHP_FPM_GROUP=100
- COMPOSER_HOME=/var/www/app/.composer
# this is required to run tests with database from vendor/chill-project/chill-bundles directory
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres?serverVersion=14&charset=utf8
links:
- smtp
@@ -26,9 +28,11 @@ services:
- .:/var/www/app
db:
image: postgis/postgis:12-3.1-alpine
volumes:
- ./docker/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
# if you prefer to store the data somewhere into your user path, instead of the docker's path
# this is useful not to loose data when you run `docker container prune` or `docker volume prune`
- /path/to/your/db/data:/var/lib/postgresql
ports:
- "127.0.0.1:5432:5432"
environment: