Skip to content

Instantly share code, notes, and snippets.

@mbejda mbejda/docker-compose.yml
Last active Apr 8, 2019

Embed
What would you like to do?
wordpress docker compose
version: '3.3'
volumes:
s3data:
driver: local
services:
s3vol:
image: elementar/s3-volume
command: /data s3://${S3_BUCKET}
environment:
- BACKUP_INTERVAL=${BACKUP_INTERVAL}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
volumes:
- s3data:/data
wordpress:
depends_on:
- db
image: wordpress:latest
volumes:
- s3data:/var/www/html
ports:
- "80:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: my_wordpress_db_password
db:
image: mysql:5.7
volumes:
- s3data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: my_db_root_password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: my_wordpress_db_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.