Skip to content

Instantly share code, notes, and snippets.

@seahyc
Created February 15, 2017 07:31
Show Gist options
  • Save seahyc/d1a962cfe32f2a48a148fae235b4a9f7 to your computer and use it in GitHub Desktop.
Save seahyc/d1a962cfe32f2a48a148fae235b4a9f7 to your computer and use it in GitHub Desktop.
docker-compose.yml for rancher-server and rancher-nginx
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
@eyanez111
Copy link

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment