Files
docker-stacks/stacks/brain/docker-compose.yml
knight eed6196da5
Some checks failed
Deploy Stacks / deploy-prod (push) Failing after 6s
Deploy Stacks / deploy-dev (push) Has been cancelled
Move Traefik file routes to Docker labels
2026-02-05 22:04:28 -05:00

34 lines
843 B
YAML

services:
web:
image: nginx:latest
container_name: brain
restart: unless-stopped
expose:
- 80
volumes:
- ./public:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- web
labels:
- "com.ghost.tel/stack-type=prod"
- "traefik.enable=true"
- "traefik.http.routers.brain.entrypoints=https"
- "traefik.http.routers.brain.rule=Host(`brain.${DOMAIN}`)"
- "traefik.http.routers.brain.tls.certresolver=http"
- "traefik.http.routers.brain.middlewares=auth@docker"
sftp:
image: atmoz/sftp
container_name: brain-sftp
restart: unless-stopped
volumes:
- ./public:/home/commander/upload
ports:
- "2232:22"
command: ${BRAIN_SFTP_USER}:${BRAIN_SFTP_PASSWORD}:1001
networks:
web:
external: true