Created
August 29, 2018 18:12
-
-
Save misterorion/6d2198b8d876b4ff9c7fefdce0b333af to your computer and use it in GitHub Desktop.
docker-compose file for wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
proxy: | |
depends_on: | |
- wordpress | |
image: nginx:alpine | |
container_name: proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- wp-data:/var/www/html | |
- certs:/etc/letsencrypt | |
- certs-data:/data/letsencrypt | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
- ~/wp-content:/var/www/html/wp-content | |
restart: always | |
wordpress: | |
image: wordpress:fpm-alpine | |
container_name: wordpress | |
volumes: | |
- wp-data:/var/www/html | |
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini | |
- ~/wp-content:/var/www/html/wp-content | |
ports: | |
- "9000:9000" | |
environment: | |
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME} | |
- WORDPRESS_TABLE_PREFIX=${WORDPRESS_TABLE_PREFIX} | |
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST} | |
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER} | |
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD} | |
restart: always | |
volumes: | |
wp-data: | |
external: true | |
certs: | |
external: true | |
certs-data: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment