EthikTag/docker-compose.yml

37 lines
918 B
YAML

version: "3"
services:
ethik_tag:
build:
context: ./containers/ethikTag
volumes:
- .:/var/www
ports:
- 8000:80
###> doctrine/doctrine-bundle ###
mariadb:
image: mariadb:10.10
environment:
MYSQL_DATABASE: ethik
MYSQL_USER: ethik
MYSQL_PASSWORD: ethik
MYSQL_ROOT_PASSWORD: ethik
TZ: Europe/Paris
volumes:
- ./containers/mariadb/init-db.d:/docker-entrypoint-initdb.d/:ro
- mariadb_data:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
# 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 ###
adminer:
image: adminer:latest
ports:
- 8082:8080
volumes:
###> doctrine/doctrine-bundle ###
mariadb_data:
###< doctrine/doctrine-bundle ###