Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save redtripleAAA/a6a5733e1b8322722572f782529c8c66 to your computer and use it in GitHub Desktop.
Save redtripleAAA/a6a5733e1b8322722572f782529c8c66 to your computer and use it in GitHub Desktop.
Docker Compose - WordPress - Synology NAS
version: '2.1'
services:
wordpress:
user: root
image: wordpress
restart: unless-stopped
ports:
- 6980:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: ansred
WORDPRESS_DB_PASSWORD: anisdb
WORDPRESS_DB_NAME: anis
volumes:
- /volume1/docker/WordPress/anis/data:/var/www/html
links:
- db:db
db:
user: root
image: mysql:latest
restart: unless-stopped
environment:
MYSQL_DATABASE: anis
MYSQL_USER: ansred
MYSQL_PASSWORD: anisdb
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- /volume1/docker/WordPress/anis/db:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment