##// END OF EJS Templates
services: use a better name for nginx service to serve static files
services: use a better name for nginx service to serve static files

File last commit:

r252:a915b499
r339:a691e00d
Show More
docker-compose-services.override.yaml
73 lines | 1.9 KiB | text/x-yaml | YamlLexer
/ templates / docker-compose-services.override.yaml
version: '3.9'
## This is a final override file for services stack
## Add your own customizations
## docker network create -d overlay lb-net
services:
database:
deploy:
# to disable usage of this service using your own postgres instance set replicas to 0
replicas: 1
# ports:
# # expose running db to host under 5432 port
# - "127.0.0.1::5432"
database-mysql:
deploy:
# to disable usage of this service, running your own mysql instance set replicas to 0
replicas: 1
redis:
# to disable usage of this service using external redis set replicas to 0
deploy:
replicas: 1
elasticsearch:
# to disable usage of this service using external elasticsearch set replicas to 0
deploy:
replicas: 1
nginx-statics:
{}
channelstream:
labels:
- "traefik.enable=true"
# # Enable http+https endpoints to serve SSL, select just 1 to disable the other
# - "traefik.http.routers.channelstream.entrypoints=http,https"
portainer:
# Run with COMPOSE_PROFILES=portainer
# to access portainer set separate domain for portainer
# also needs an external new volume
# docker volume create --label keep=1 --name=portainer_data
image: portainer/portainer-ce:latest
restart: always
volumes:
- portainer_data:/data
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: replicated
replicas: 1
placement:
constraints:
# limit swarm deploy to MANAGER only
- node.role == manager
networks:
- rhodecode_network
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.entrypoints=https"
- "traefik.http.routers.portainer.rule=Host(`portainer.yourdomain.com`)"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
profiles:
["portainer"]
volumes:
portainer_data:
external: true