Untitled
unknown
plain_text
a year ago
1.0 kB
2
Indexable
Never
version: '3' services: wordpress: image: wordpress:latest volumes: - ./wordpress:/var/www/html environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: cineklee WORDPRESS_DB_PASSWORD: CKcp2! WORDPRESS_DB_NAME: cineklee_ck ports: - "8080:80" # Utilisez le port 8080 sur l'hôte pour rediriger vers le port 80 du conteneur depends_on: - db db: image: mariadb:latest volumes: - ./db_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: root_password MYSQL_DATABASE: cineklee_ck MYSQL_USER: cineklee MYSQL_PASSWORD: CKcp2! php: image: php:latest volumes: - ./wordpress:/var/www/html depends_on: - db webserver: image: nginx:latest volumes: - ./wordpress:/var/www/html - ./nginx-conf:/etc/nginx/conf.d ports: - "80:80" # Vous pouvez laisser le port 80 du conteneur ici car il est distinct de celui de WordPress depends_on: - php