fixing config to just route within network and not expose ports of services

This commit is contained in:
talksik
2023-08-14 13:53:24 -07:00
parent b41a9cc3c9
commit 904be49ac9
2 changed files with 36 additions and 6 deletions
+3 -5
View File
@@ -25,17 +25,15 @@ services:
image: registry:2
restart: unless-stopped
container_name: registry
ports:
- 5001:5001 # using different port simply because nginx container needs the 5000 port
volumes:
- /mnt/registry:/var/lib/registry
networks:
- nginx
rancher:
image: rancher/rancher:latest
restart: unless-stopped
container_name: rancher
ports:
- 2000:80
- 2001:443
privileged: true
networks:
- nginx