[dsfr] Squelette pour tests
This commit is contained in:
40
compose.yaml
40
compose.yaml
@@ -1,21 +1,29 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
###> doctrine/doctrine-bundle ###
|
||||
database:
|
||||
image: postgres:${POSTGRES_VERSION:-15}-alpine
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-app}
|
||||
# You should definitely change the password in production
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-app}
|
||||
php:
|
||||
build: docker/php-fpm
|
||||
volumes:
|
||||
- database_data:/var/lib/postgresql/data:rw
|
||||
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
|
||||
# - ./docker/db/data:/var/lib/postgresql/data:rw
|
||||
###< doctrine/doctrine-bundle ###
|
||||
- .:/var/www
|
||||
- ./docker/php-fpm/php.ini:/usr/local/etc/php/conf.d/php.override.ini:ro
|
||||
|
||||
volumes:
|
||||
###> doctrine/doctrine-bundle ###
|
||||
database_data:
|
||||
###< doctrine/doctrine-bundle ###
|
||||
nginx:
|
||||
build: docker/nginx
|
||||
depends_on:
|
||||
- php
|
||||
volumes:
|
||||
- .:/var/www
|
||||
- ../data/logs/nginx/:/var/log/nginx
|
||||
- ./docker/nginx/dev/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./docker/nginx/dev/sites/:/etc/nginx/sites-available
|
||||
- ./docker/nginx/dev/conf.d/:/etc/nginx/conf.d
|
||||
- ./docker/nginx/dev/snippets/:/etc/nginx/snippets
|
||||
ports:
|
||||
- "8081:80"
|
||||
- "8444:443"
|
||||
|
||||
node:
|
||||
build: docker/node
|
||||
tty: true
|
||||
volumes:
|
||||
- .:/var/www
|
||||
|
||||
Reference in New Issue
Block a user