Created
February 15, 2017 07:31
-
-
Save seahyc/d1a962cfe32f2a48a148fae235b4a9f7 to your computer and use it in GitHub Desktop.
docker-compose.yml for rancher-server and rancher-nginx
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: | |
rancher-server: | |
image: rancher/server | |
container_name: rancher-server | |
ports: | |
- "8080:8080" | |
volumes: | |
- /root/mysql:/var/lib/mysql | |
- /root/mysql-log:/var/log/mysql | |
- /root/cattle:/var/log/cattle | |
rancher-nginx: | |
image: nginx | |
container_name: rancher-nginx | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /root/nginx/rancher-nginx.conf:/etc/nginx/conf.d/default.conf:ro | |
- /root/nginx/webroot:/var/www/letsencrypt:ro | |
- /etc/letsencrypt:/etc/letsencrypt:ro | |
depends_on: | |
- rancher-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks!