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

26 lines
650 B

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
MYSQL_DATABASE: laomadj_customer
# command: --init-file /docker-entrypoint-initdb.d/init.sql
volumes:
- ./volumes/mysql/data:/var/lib/mysql
# - ./volumes/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql