Fix: Add services folder to docker-compose volume mounts
This commit is contained in:
parent
b53ff9c345
commit
f7b9a7d35b
|
|
@ -13,6 +13,7 @@ services:
|
||||||
- ./styles.css:/usr/share/nginx/html/styles.css:ro
|
- ./styles.css:/usr/share/nginx/html/styles.css:ro
|
||||||
- ./script.js:/usr/share/nginx/html/script.js:ro
|
- ./script.js:/usr/share/nginx/html/script.js:ro
|
||||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
- ./services:/usr/share/nginx/html/services:ro
|
||||||
|
|
||||||
# Network configuration
|
# Network configuration
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ services:
|
||||||
- /opt/lemonlink/styles.css:/usr/share/nginx/html/styles.css:ro
|
- /opt/lemonlink/styles.css:/usr/share/nginx/html/styles.css:ro
|
||||||
- /opt/lemonlink/script.js:/usr/share/nginx/html/script.js:ro
|
- /opt/lemonlink/script.js:/usr/share/nginx/html/script.js:ro
|
||||||
- /opt/lemonlink/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
- /opt/lemonlink/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
- /opt/lemonlink/services:/usr/share/nginx/html/services:ro
|
||||||
|
|
||||||
# Network
|
# Network
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -51,8 +52,8 @@ networks:
|
||||||
# ssh root@your-docker-vm-ip
|
# ssh root@your-docker-vm-ip
|
||||||
#
|
#
|
||||||
# 2. Create directory and upload files:
|
# 2. Create directory and upload files:
|
||||||
# mkdir -p /opt/lemonlink
|
# mkdir -p /opt/lemonlink/services
|
||||||
# # Upload index.html, styles.css, script.js, nginx.conf to /opt/lemonlink/
|
# # Upload index.html, styles.css, script.js, nginx.conf, and services/ folder to /opt/lemonlink/
|
||||||
#
|
#
|
||||||
# 3. In Portainer:
|
# 3. In Portainer:
|
||||||
# - Go to Stacks → + Add Stack
|
# - Go to Stacks → + Add Stack
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue