karideo/bdd/docker-compose.yaml

26 lines
551 B
YAML
Raw Normal View History

2020-10-25 00:39:52 +02:00
# Use root/example as user/password credentials
version: '3.1'
2020-02-15 09:08:07 +01:00
services:
2020-10-25 00:39:52 +02:00
db_service:
image: mysql:latest
container_name: mysql_db
2020-02-15 09:08:07 +01:00
restart: always
2020-10-25 00:39:52 +02:00
command: --default-authentication-plugin=mysql_native_password
env_file:
- ./config.env
#environment:
# MYSQL_ROOT_PASSWORD: changeme
# MYSQL_DATABASE: mybdd
2020-02-15 09:08:07 +01:00
volumes:
2020-10-25 00:39:52 +02:00
- ./data:/var/lib/mysql
2020-02-16 23:38:13 +01:00
ports:
2020-10-25 00:39:52 +02:00
- 15306:3306
adminer_service:
image: adminer:latest
2020-03-10 22:33:02 +01:00
restart: always
ports:
2020-10-25 00:39:52 +02:00
- 8080:8080
2020-03-10 22:33:02 +01:00
links:
2020-10-25 00:39:52 +02:00
- db_service:db