Skip to content

Instantly share code, notes, and snippets.

@tivaliy
Created March 10, 2025 09:17
Show Gist options
  • Save tivaliy/191df1116dbb6f2f4818bd11d0b64b83 to your computer and use it in GitHub Desktop.
Save tivaliy/191df1116dbb6f2f4818bd11d0b64b83 to your computer and use it in GitHub Desktop.
services:
wordpress:
image: wordpress:latest
# ports:
# - "8080:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
depends_on:
- db
networks:
- wp_network
db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
volumes:
- db_data:/var/lib/mysql
networks:
- wp_network
nginx:
image: nginx:latest
restart: always
ports:
- "443:443"
volumes:
- ./wordpress_lab/ssl:/etc/nginx/ssl
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- wordpress
networks:
- wp_network
volumes:
db_data:
networks:
wp_network:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment