2022-09-29 09:26:45 +00:00
|
|
|
version: "3.8"
|
2019-05-22 08:18:41 +00:00
|
|
|
services:
|
|
|
|
nacos:
|
2021-03-21 07:13:03 +00:00
|
|
|
image: nacos/nacos-server:${NACOS_VERSION}
|
2019-05-22 08:18:41 +00:00
|
|
|
container_name: nacos-standalone-mysql
|
2020-02-16 06:55:11 +00:00
|
|
|
env_file:
|
|
|
|
- ../env/nacos-standlone-mysql.env
|
2019-05-22 08:18:41 +00:00
|
|
|
volumes:
|
|
|
|
- ./standalone-logs/:/home/nacos/logs
|
|
|
|
ports:
|
|
|
|
- "8848:8848"
|
2021-04-13 00:31:12 +00:00
|
|
|
- "9848:9848"
|
2019-05-22 08:18:41 +00:00
|
|
|
depends_on:
|
2022-09-29 09:26:45 +00:00
|
|
|
mysql:
|
|
|
|
condition: service_healthy
|
2020-07-10 14:57:53 +00:00
|
|
|
restart: always
|
2020-02-16 06:55:11 +00:00
|
|
|
mysql:
|
|
|
|
container_name: mysql
|
2022-09-29 09:26:45 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./image/mysql/8/Dockerfile
|
|
|
|
image: example/mysql:8.0.30
|
2019-05-22 08:18:41 +00:00
|
|
|
env_file:
|
2020-02-16 06:55:11 +00:00
|
|
|
- ../env/mysql.env
|
2019-05-22 08:18:41 +00:00
|
|
|
volumes:
|
2020-02-16 06:55:11 +00:00
|
|
|
- ./mysql:/var/lib/mysql
|
2019-05-22 08:18:41 +00:00
|
|
|
ports:
|
|
|
|
- "3306:3306"
|
2022-09-29 09:26:45 +00:00
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
2020-02-16 09:01:58 +00:00
|
|
|
|
2019-05-22 08:18:41 +00:00
|
|
|
|