Update chown service

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2024-09-15 21:23:20 +02:00
parent d53081cd35
commit bc7167a1b7
3 changed files with 14 additions and 3 deletions

View File

@ -30,6 +30,8 @@ services:
profiles: profiles:
- database - database
- gitea - gitea
depends_on:
- caddy
environment: environment:
- PUID=${PUID:-1000} - PUID=${PUID:-1000}
- PGID=${PGID:-1000} - PGID=${PGID:-1000}

View File

@ -118,4 +118,10 @@
description: 7 Days to Die server description: 7 Days to Die server
# ping: 7dtd.bensuperpc.org # ping: 7dtd.bensuperpc.org
container: 7dtd-server container: 7dtd-server
- satisfactory:
# icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/7dtd.png
# href: https://7dtd.bensuperpc.org/
description: Satisfactory server
# ping: 7dtd.bensuperpc.org
container: satisfactory-server

View File

@ -5,8 +5,9 @@ services:
profiles: profiles:
- main_infrastructure - main_infrastructure
volumes: volumes:
- public_data:/public - infrastructure_server_chown:/infrastructure_server:rw
- private_data:/private - public_data:/infrastructure_server/public:rw
- private_data:/infrastructure_server/private:rw
read_only: true read_only: true
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
@ -16,9 +17,11 @@ services:
- CHOWN - CHOWN
- DAC_OVERRIDE - DAC_OVERRIDE
# Fix root permissions on mounted volumes # Fix root permissions on mounted volumes
command: chown -R ${PUID:-1000}:${PGID:-1000} /public /private command: chown -R ${PUID:-1000}:${PGID:-1000} /infrastructure_server
volumes: volumes:
infrastructure_server_chown:
name: infrastructure_server_chown
public_data: public_data:
name: public_data name: public_data
private_data: private_data: