Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eon01/790141f8a881811dda16e934f83dd632 to your computer and use it in GitHub Desktop.
Save eon01/790141f8a881811dda16e934f83dd632 to your computer and use it in GitHub Desktop.
Wordpress + Docker Swarm + Docker Compose V3 + RDS
version: '3'
networks:
wordpress_network:
#volumes:
# fs-xxxxx:
# driver: rexray or efs
# driver_opts:
# share: "fs-xxxxx"
services:
wordpress:
image: wordpress:4.7.3-php7.1-apache
ports:
- 8080:80
networks:
- wordpress_network
volumes:
- xxxx:/usr/src/wordpress
environment:
WORDPRESS_DB_HOST: general.cluster-xxxxx.eu-west-1.rds.amazonaws.com:3306
WORDPRESS_DB_USER: user
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: db
WORDPRESS_TABLE_PREFIX: wp_
deploy:
mode: replicated
replicas: 1
labels: [APP=WORDPRESS]
restart_policy:
condition: on-failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment