44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
#### NETWORKS
|
|
networks:
|
|
docker-traefik_front_network:
|
|
external: true
|
|
back_network:
|
|
driver: bridge
|
|
attachable: true
|
|
|
|
#### SERVICES
|
|
services:
|
|
### pingvin
|
|
pingvin-share:
|
|
container_name: pingvin-app
|
|
hostname: pingvin-app
|
|
image: stonith404/pingvin-share
|
|
restart: unless-stopped
|
|
networks:
|
|
- docker-traefik_front_network
|
|
volumes:
|
|
- "./data:/opt/app/backend/data"
|
|
- "./images:/opt/app/frontend/public/img"
|
|
# Facultatif : Si vous ajoutez ClamAV, décommentez ce qui suit pour que ClamAV démarre en premier.
|
|
# depends_on:
|
|
# clamav:
|
|
# condition: service_healthy
|
|
# Optional: Add ClamAV (see README.md)
|
|
# ClamAV is currently only available for AMD64 see https://github.com/Cisco-Talos/clamav/issues/482
|
|
# clamav:
|
|
# restart: unless-stopped
|
|
# image: clamav/clamav
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=docker-traefik_front_network"
|
|
## HTTP
|
|
- "traefik.http.routers.pingvin-http.rule=Host(`pingvin.10.0.4.29.traefik.me`)"
|
|
- "traefik.http.routers.pingvin-http.entrypoints=http"
|
|
## HTTPS
|
|
- "traefik.http.routers.pingvin-https.rule=Host(`pingvin.10.0.4.29.traefik.me`)"
|
|
- "traefik.http.routers.pingvin-https.entrypoints=https"
|
|
- "traefik.http.routers.pingvin-https.tls=true"
|
|
- "traefik.http.routers.pingvin.service=pingvin-service"
|
|
## Middleware
|
|
## Service
|
|
- "traefik.http.services.pingvin-service.loadbalancer.server.port=3000" |