reddichat-flat/docker-compose.yml
2020-07-12 21:10:29 -05:00

42 lines
875 B
YAML

version: '2'
services:
reddichat_redis:
image: redis:6
ports:
- ${REDIS_PORT}:6379
reddichat_phpredisadmin:
image: erikdubbelboer/phpredisadmin:latest
environment:
- REDIS_1_HOST=reddichat_redis
- REDIS_1_NAME=reddichat
labels:
- 'traefik.frontend.rule=Host:phpredisadmin.reddichat.localhost'
reddichat_mysql:
image: mysql:8
ports:
- ${MYSQL_PORT}:3306
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
command:
- '--default-authentication-plugin=mysql_native_password'
reddichat_adminer:
image: adminer
environment:
ADMINER_DEFAULT_SERVER: reddichat_mysql
labels:
- 'traefik.frontend.rule=Host:adminer.reddichat.localhost'
restart: always
networks:
default:
external:
name: docker_system_default