-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
37 lines (36 loc) · 1.32 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3.7'
services:
traefik:
image: "traefik:v2.5" # Use the version of Traefik you prefer
container_name: gestion-inventaire-traefik
command:
- "--api.insecure=false" # Enable insecure API on port 8080 (for testing purposes)
- "--providers.docker=true" # Enable Docker provider
- "--entrypoints.web.address=:80" # HTTP entry point
- "--entrypoints.websecure.address=:443" # HTTPS entry point
ports:
# - "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Connect to Docker socket
frontend:
container_name: gestion-inventaire-frontend
build:
context: .
target: "dev"
image: "erasme/gestion_inventaire:dev"
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`$HOST`)" # Set the host
- "traefik.http.routers.frontend.entrypoints=websecure" # Use HTTPS entry point
- "traefik.http.routers.frontend.tls=true" # Enable TLS
volumes:
- ./src/:/app/src
ports:
- "5173:5173"
environment:
- PRIVATE_NOTION_TOKEN=$PRIVATE_NOTION_TOKEN
- PRIVATE_NOTION_DB_ID=$PRIVATE_NOTION_DB_ID
- PRIVATE_NOTION_FEEDBACK_DB_ID=$PRIVATE_NOTION_FEEDBACK_DB_ID
- PUBLIC_REFRESH_INTERVAL=$PUBLIC_REFRESH_INTERVAL
- PUBLIC_PASSWORD=$PUBLIC_PASSWORD