38 lines
1011 B
YAML
38 lines
1011 B
YAML
# The purpose of this docker compose is just to setup a new /var/www/html volume
|
|
# from a new version of wordpress, after 'down -v'
|
|
|
|
services:
|
|
|
|
wordpress:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.wordpress_fpm
|
|
args:
|
|
WORDPRESS_VERSION: ${WORDPRESS_VERSION}
|
|
image: ${IMAGE_WEB:-web}
|
|
volumes:
|
|
- html:/var/www/html
|
|
environment:
|
|
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST:-database:3306}
|
|
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD:-fake}
|
|
- VIRTUAL_HOST=${VIRTUAL_HOST:-wordpress}
|
|
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST:-wordpress}
|
|
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL:-me}
|
|
- LETSENCRYPT_TEST=${LETSENCRYPT_TEST:-true}
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
restart: always
|
|
networks:
|
|
- letsencrypt
|
|
- default
|
|
|
|
volumes:
|
|
html:
|
|
name: ${HTML_VOLUME:-html}
|
|
|
|
networks:
|
|
letsencrypt:
|
|
external: true |