Files
homelab/docker-compose.yaml
T

40 lines
946 B
YAML

version: '3.3'
networks:
nginx:
services:
nginx:
image: nginx:latest
restart: unless-stopped
container_name: nginx-reverse-proxy
ports:
- 8080:8080 # hello world nginx docker container itself
- 5000:5000 # container registry with tls within docker
- 80:80 # hello world in kubernetes cluster
- 3080:3080 # api within kubernetes cluster
- 6000:6000 # audio route
- 6001:6001 # video route
- 6002:6002 # presence route
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./src/index.html:/usr/share/nginx/html/index.html
networks:
- nginx
registry:
image: registry:2
restart: unless-stopped
container_name: registry
volumes:
- /mnt/registry:/var/lib/registry
networks:
- nginx
rancher:
image: rancher/rancher:latest
restart: unless-stopped
container_name: rancher
privileged: true
networks:
- nginx