Update docker-compose and portainer-stack with absolute paths for production

This commit is contained in:
Roberth Rajala 2026-02-02 15:20:18 +01:00
parent fe00115a71
commit 435a7e99dc
2 changed files with 7 additions and 7 deletions

View File

@ -7,13 +7,13 @@ services:
container_name: lemonlink-landing container_name: lemonlink-landing
restart: unless-stopped restart: unless-stopped
# Volume mounts for easy updates # Volume mounts for easy updates (use absolute paths for production)
volumes: volumes:
- ./index.html:/usr/share/nginx/html/index.html:ro - /opt/lemonlink/index.html:/usr/share/nginx/html/index.html:ro
- ./styles.css:/usr/share/nginx/html/styles.css:ro - /opt/lemonlink/styles.css:/usr/share/nginx/html/styles.css:ro
- ./script.js:/usr/share/nginx/html/script.js:ro - /opt/lemonlink/script.js:/usr/share/nginx/html/script.js:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro - /opt/lemonlink/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./services:/usr/share/nginx/html/services:ro - /opt/lemonlink/services:/usr/share/nginx/html/services:ro
# Network configuration # Network configuration
networks: networks:

View File

@ -9,7 +9,7 @@ services:
container_name: lemonlink-landing container_name: lemonlink-landing
restart: unless-stopped restart: unless-stopped
# Mount website files from host # Mount website files from host (absolute paths for Portainer)
volumes: volumes:
- /opt/lemonlink/index.html:/usr/share/nginx/html/index.html:ro - /opt/lemonlink/index.html:/usr/share/nginx/html/index.html:ro
- /opt/lemonlink/styles.css:/usr/share/nginx/html/styles.css:ro - /opt/lemonlink/styles.css:/usr/share/nginx/html/styles.css:ro