mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 00:34:26 +01:00
Update config
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
68c23b1b0f
commit
7d6d59a4ab
@ -5,6 +5,7 @@ services:
|
|||||||
container_name: caddy
|
container_name: caddy
|
||||||
profiles:
|
profiles:
|
||||||
- caddy
|
- caddy
|
||||||
|
#user: ${PUID:-1000}:${PGID:-1000}
|
||||||
depends_on:
|
depends_on:
|
||||||
main_infrastructure:
|
main_infrastructure:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
@ -21,6 +22,7 @@ services:
|
|||||||
- infra-network
|
- infra-network
|
||||||
env_file:
|
env_file:
|
||||||
- ./caddy/env/caddy.env
|
- ./caddy/env/caddy.env
|
||||||
|
#read_only: true
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
#cap_drop:
|
#cap_drop:
|
||||||
@ -40,12 +42,14 @@ services:
|
|||||||
- caddy
|
- caddy
|
||||||
depends_on:
|
depends_on:
|
||||||
- caddy
|
- caddy
|
||||||
|
#user: "${PUID:-1000}:${PGID:-1000}"
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
env_file:
|
env_file:
|
||||||
- ./caddy/env/caddy_backup.env
|
- ./caddy/env/caddy_backup.env
|
||||||
volumes:
|
volumes:
|
||||||
- caddy_backup:/mnt/restic
|
- caddy_backup:/mnt/restic
|
||||||
- caddy_data:/data:ro
|
- caddy_data:/data:ro
|
||||||
|
# - caddy_backup_cache:/.cache
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
@ -58,3 +62,6 @@ volumes:
|
|||||||
name: caddy_config
|
name: caddy_config
|
||||||
caddy_backup:
|
caddy_backup:
|
||||||
name: caddy_backup
|
name: caddy_backup
|
||||||
|
caddy_backup_cache:
|
||||||
|
name: caddy_backup_cache
|
||||||
|
|
||||||
|
@ -8,6 +8,10 @@ services:
|
|||||||
- infrastructure_server_chown:/infrastructure_server:rw
|
- infrastructure_server_chown:/infrastructure_server:rw
|
||||||
- public_data:/infrastructure_server/public:rw
|
- public_data:/infrastructure_server/public:rw
|
||||||
- private_data:/infrastructure_server/private:rw
|
- private_data:/infrastructure_server/private:rw
|
||||||
|
#- caddy_data:/infrastructure_server/caddy_data:rw
|
||||||
|
#- caddy_config:/infrastructure_server/caddy_config:rw
|
||||||
|
#- caddy_backup:/infrastructure_server/caddy_backup:rw
|
||||||
|
#- caddy_backup_cache:/infrastructure_server/caddy_backup_cache:rw
|
||||||
read_only: true
|
read_only: true
|
||||||
security_opt:
|
security_opt:
|
||||||
- no-new-privileges:true
|
- no-new-privileges:true
|
||||||
@ -26,6 +30,14 @@ volumes:
|
|||||||
name: public_data
|
name: public_data
|
||||||
private_data:
|
private_data:
|
||||||
name: private_data
|
name: private_data
|
||||||
|
caddy_data:
|
||||||
|
name: caddy_data
|
||||||
|
caddy_config:
|
||||||
|
name: caddy_config
|
||||||
|
caddy_backup:
|
||||||
|
name: caddy_backup
|
||||||
|
caddy_backup_cache:
|
||||||
|
name: caddy_backup_cache
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
infra-network:
|
infra-network:
|
||||||
|
@ -15,9 +15,13 @@ services:
|
|||||||
- PGID=${PGID:-1000}
|
- PGID=${PGID:-1000}
|
||||||
volumes:
|
volumes:
|
||||||
- openssh_config:/config
|
- openssh_config:/config
|
||||||
|
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
|
||||||
- public_data:/public
|
- public_data:/public
|
||||||
- private_data:/private
|
- private_data:/private
|
||||||
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
|
- caddy_data:/caddy_data:rw
|
||||||
|
- caddy_config:/caddy_config:rw
|
||||||
|
- caddy_backup:/caddy_backup:rw
|
||||||
|
- caddy_backup_cache:/caddy_backup_cache:rw
|
||||||
networks:
|
networks:
|
||||||
- infra-network
|
- infra-network
|
||||||
security_opt:
|
security_opt:
|
||||||
@ -31,3 +35,12 @@ volumes:
|
|||||||
name: public_data
|
name: public_data
|
||||||
private_data:
|
private_data:
|
||||||
name: private_data
|
name: private_data
|
||||||
|
caddy_data:
|
||||||
|
name: caddy_data
|
||||||
|
caddy_config:
|
||||||
|
name: caddy_config
|
||||||
|
caddy_backup:
|
||||||
|
name: caddy_backup
|
||||||
|
caddy_backup_cache:
|
||||||
|
name: caddy_backup_cache
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user