CdsConnector/docker-compose.yml

39 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2022-06-22 17:01:26 +02:00
version: '3.1'
services:
2023-01-30 15:36:20 +01:00
db:
image: mysql
2022-06-22 17:01:26 +02:00
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
2023-01-30 15:36:20 +01:00
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
2022-06-22 17:01:26 +02:00
2023-01-30 15:36:20 +01:00
adminer:
image: adminer
restart: always
ports:
2023-11-23 16:54:04 +01:00
- "8080:8080"
2023-06-14 17:02:24 +02:00
2023-11-23 16:54:04 +01:00
###> doctrine/doctrine-bundle ###
2023-06-14 17:02:24 +02:00
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}
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 ###
volumes:
2023-11-23 16:54:04 +01:00
###> doctrine/doctrine-bundle ###
2023-06-14 17:02:24 +02:00
database_data:
2023-11-23 16:54:04 +01:00
###< doctrine/doctrine-bundle ###