Skip to content

Commit

Permalink
Update config
Browse files Browse the repository at this point in the history
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
  • Loading branch information
bensuperpc committed Sep 16, 2024
1 parent 68c23b1 commit 7d6d59a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
7 changes: 7 additions & 0 deletions infrastructure/caddy/docker-compose.caddy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
container_name: caddy
profiles:
- caddy
#user: ${PUID:-1000}:${PGID:-1000}
depends_on:
main_infrastructure:
condition: service_completed_successfully
Expand All @@ -21,6 +22,7 @@ services:
- infra-network
env_file:
- ./caddy/env/caddy.env
#read_only: true
security_opt:
- no-new-privileges:true
#cap_drop:
Expand All @@ -40,12 +42,14 @@ services:
- caddy
depends_on:
- caddy
#user: "${PUID:-1000}:${PGID:-1000}"
restart: on-failure:5
env_file:
- ./caddy/env/caddy_backup.env
volumes:
- caddy_backup:/mnt/restic
- caddy_data:/data:ro
# - caddy_backup_cache:/.cache
networks:
- infra-network
security_opt:
Expand All @@ -58,3 +62,6 @@ volumes:
name: caddy_config
caddy_backup:
name: caddy_backup
caddy_backup_cache:
name: caddy_backup_cache

12 changes: 12 additions & 0 deletions infrastructure/main/docker-compose.main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ services:
- infrastructure_server_chown:/infrastructure_server:rw
- public_data:/infrastructure_server/public: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
security_opt:
- no-new-privileges:true
Expand All @@ -26,6 +30,14 @@ volumes:
name: public_data
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:
infra-network:
Expand Down
15 changes: 14 additions & 1 deletion infrastructure/openssh/docker-compose.openssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ services:
- PGID=${PGID:-1000}
volumes:
- openssh_config:/config
- ./openssh/config/authorized_keys:/authorized_ssh_keys:ro
- public_data:/public
- 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:
- infra-network
security_opt:
Expand All @@ -31,3 +35,12 @@ volumes:
name: public_data
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

0 comments on commit 7d6d59a

Please sign in to comment.