Last active
November 22, 2016 03:11
-
-
Save arthurpham/5c87fffa5906c84e0cf27be1536c0977 to your computer and use it in GitHub Desktop.
Docker compose for Rancher
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
nginx-proxy: | |
image: jwilder/nginx-proxy:latest | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- '/home/docker/nginx-proxy/ssl:/etc/nginx/certs:ro' | |
- '/etc/nginx/vhost.d' | |
- '/usr/share/nginx/html' | |
- '/var/run/docker.sock:/tmp/docker.sock:ro' | |
letsencrypt-nginx-proxy-companion: | |
image: jrcs/letsencrypt-nginx-proxy-companion:latest | |
volumes_from: | |
- nginx-proxy | |
volumes: | |
- '/home/docker/nginx-proxy/ssl:/etc/nginx/certs:rw' | |
- '/var/run/docker.sock:/var/run/docker.sock:ro' | |
rancher-server: | |
image: rancher/server:latest | |
environment: | |
VIRTUAL_PORT: 8080 | |
VIRTUAL_HOST: test.nicolashug.com | |
LETSENCRYPT_HOST: test.nicolashug.com | |
LETSENCRYPT_EMAIL: [email protected] | |
volumes: | |
- '/home/docker/rancher-server/mysql:/var/lib/mysql:rw' | |
mysql-backup: | |
image: deitch/mysql-backup | |
links: | |
- 'rancher-server:db' | |
environment: | |
DB_USER: cattle | |
DB_PASS: cattle | |
DB_DUMP_TARGET: s3://rancher-db/mysql | |
AWS_ACCESS_KEY_ID: | |
AWS_SECRET_ACCESS_KEY: | |
AWS_DEFAULT_REGION: us-east-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment