Skip to content

淑萍 #36

@PingThe

Description

@PingThe

services:
web:
image: nginx:latest
container_name: nginxppp
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- '8888:80'
depends_on:
- wordpress

healthcheck:
  test: ['CMD-SHELL', 'curl -f http://localhost || exit 1']
  interval: 30s
  timeout: 10s
  retries: 3
restart: unless-stopped

wordpress:
image: wordpress
restart: always
depends_on:
- mysqlp9
environment:
WORDPRESS_DB_HOST: mysqlp9
WORDPRESS_DB_USER: user
WORDPRESS_DB_PASSWORD: user
WORDPRESS_DB_NAME: root
volumes:
- wordpress:/var/www/html

mysqlp9:
image: mysql:latest
container_name: mysqlp9
environment:
MYSQL_DATABASE: root
MYSQL_USER: user
MYSQL_PASSWORD: user
MYSQL_ROOT_PASSWORD: root
volumes:
- db-vol:/var/lib/mysql
logging:
driver: gelf
options:
gelf-address: udp://127.0.0.1:12299
healthcheck:
test: ['CMD-SHELL', 'mysqladmin ping -h localhost -u root --password=root || exit 1']
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped

volumes:
web:
wordpress:
db-vol:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions