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.

35 lines
928 B

services:
consul:
container_name: laomaDJConsul
image: consul
ports:
- "8500:8500"
command: agent -dev -client=0.0.0.0
# prometheus:
# image: prom/prometheus
# container_name: laomaDJConsulPrometheus
# ports:
# - "9090:9090"
# volumes:
# - ./data/prometheus/etc:/etc/prometheus
# - ./data/prometheus/data:/prometheus
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
# docker-compose up -d