34 lines
843 B
YAML
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
|