Open Dustin0320 opened 6 days ago
services: nginx: image: nginx:latest container_name: nginx_user-10 volumes:
/home/user-10/db:/var/lib/mysql logging: driver: gelf options: gelf-address: udp://127.0.0.1:12201 healthcheck: test: ['CMD-SHELL', 'mysqladmin ping -h localhost -u root --password=root || exit 1'] interval: 30s timeout: 10s retries: 3 restart: unless-stopped
services: nginx: image: nginx:latest container_name: nginx_user-10 volumes:
- db-vol:var/lib/mysql
/home/user-10/db:/var/lib/mysql logging: driver: gelf options: gelf-address: udp://127.0.0.1:12201 healthcheck: test: ['CMD-SHELL', 'mysqladmin ping -h localhost -u root --password=root || exit 1'] interval: 30s timeout: 10s retries: 3 restart: unless-stopped
volumes:
db-vol: