rsocials-online/docker-compose.yml

28 lines
683 B
YAML

services:
rsocials:
build:
context: .
dockerfile: Dockerfile
container_name: rsocials
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.rsocials.rule=Host(`rsocials.online`) || Host(`www.rsocials.online`)"
- "traefik.http.routers.rsocials.entrypoints=web"
- "traefik.http.services.rsocials.loadbalancer.server.port=3000"
- "traefik.docker.network=traefik-public"
networks:
- traefik-public
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp
- /home/nextjs/.npm
networks:
traefik-public:
external: true