Created
January 23, 2019 18:13
-
-
Save paulgibbs/d5c630aa2e5ec46520d9e6e90237c342 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: | |
wordpress: | |
container_name: "docker_wordpress_1" | |
depends_on: | |
- db | |
- memcached | |
- selenium | |
environment: | |
WORDPRESS_DB_HOST: "db:3306" | |
WORDPRESS_DB_USER: "wordpress" | |
WORDPRESS_DB_PASSWORD: "wordpress" | |
image: "library/wordpress:${WORDPRESS_VERSION}-php7.3" | |
ports: | |
- "8080:80" # HTTPd. | |
restart: "always" | |
shm_size: "2G" | |
volumes: | |
- wpcontent:/var/www/html/wp-content | |
db: | |
container_name: "docker_db_1" | |
environment: | |
MYSQL_ROOT_PASSWORD: "somewordpress" | |
MYSQL_DATABASE: "wordpress" | |
MYSQL_USER: "wordpress" | |
MYSQL_PASSWORD: "wordpress" | |
image: "mysql:5.7" | |
ports: | |
- "3306:3306" # MySQL. | |
restart: "always" | |
selenium: | |
container_name: "docker_selenium_1" | |
image: "selenium/standalone-chrome-debug:3.14.0" | |
ports: | |
- "4444:4444" # Selenium. | |
- "5900:5900" # VNC. | |
restart: "always" | |
shm_size: "2G" | |
memcached: | |
container_name: "docker_memcached_1" | |
image: "memcached:1.5-alpine" | |
entrypoint: | |
- "memcached" | |
- "-m 64" | |
ports: | |
- "11211:11211" # Memcached. | |
restart: "always" | |
composer: | |
command: "install" | |
depends_on: | |
- wordpress | |
image: "composer/composer:1.8" | |
restart: "no" | |
volumes: | |
- wpcontent:/app | |
volumes: | |
wpcontent: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment