You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
laomaDJ/docker-compose.yaml

27 lines
648 B

2 years ago
services:
consul:
container_name: laomaDJConsul
image: consul
ports:
- "8500:8500"
command: agent -dev -client=0.0.0.0
redis:
container_name: laomaDJRedis
image: redis
ports:
- "6379:6379"
volumes:
- ./data/redis:/data
mysql:
container_name: laomaDJMySQL
image: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: mashibing
2 years ago
# MYSQL_DATABASE: laomadj_customer
command: --init-file /docker-entrypoint-initdb.d/init.sql
2 years ago
volumes:
- ./volumes/mysql/data:/var/lib/mysql
2 years ago
- ./volumes/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql