Skip to content

Instantly share code, notes, and snippets.

@jonpugh
Created May 19, 2015 04:14
Show Gist options
  • Save jonpugh/d7ee7d5901df5d602535 to your computer and use it in GitHub Desktop.
Save jonpugh/d7ee7d5901df5d602535 to your computer and use it in GitHub Desktop.
Exported docker-compose.yml from Rancher for a working wordpress cluster.
app:
environment:
WORDPRESS_DB_PASSWORD: password
external_links:
1979c1fa-26cd-45a0-91cc-c73812fc94b5: mysql
tty: true
image: wordpress
links:
- database
stdin_open: true
Balance:
ports:
- 80:80
tty: true
links:
- app
stdin_open: true
database:
restart: on-failure:5
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
tty: true
image: mysql
stdin_open: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment