Skip to content

Instantly share code, notes, and snippets.

@thraizz
Created September 1, 2020 09:11
Show Gist options
  • Save thraizz/4c27f4ae10016a6d5ed361b300cfcd00 to your computer and use it in GitHub Desktop.
Save thraizz/4c27f4ae10016a6d5ed361b300cfcd00 to your computer and use it in GitHub Desktop.
Minimal docker-compose.yml for starting NGINX as a proxy for a wordpress blog.
services:
nginx:
image: nginx:latest
container_name: production_nginx
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
- ./nginx.conf:/etc/nginx/nginx.conf
- ./nginx/:/etc/nginx/
ports:
- 80:80
- 443:443
lakur_blog:
image: wordpress:latest
restart: always
container_name: production-lakur_blog
ports:
- 8000:80
expose:
- "4996"
environment:
#WORDPRESS_DB_HOST: production-lakur_blog-db:3306
#WORDPRESS_DB_USER:
#WORDPRESS_DB_PASSWORD:
#WORDPRESS_DB_NAME:
volumes:
- /srv/deployment/lakurBlog/wordpress:/var/www/html
lakur_blog-db:
image: mysql:latest
container_name: production-lakur_blog-db
restart: always
expose:
- "3306"
environment:
#MYSQL_DATABASE:
#MYSQL_USER:
#MYSQL_PASSWORD:
#MYSQL_RANDOM_ROOT_PASSWORD:
volumes:
- /srv/deployment/lakurBlog/mysql:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment