Only expose socket proxy on internal networks
All checks were successful
/ terraform (push) Successful in 37s
/ ansible (push) Successful in 1m32s

This commit is contained in:
Jake Howard 2024-09-09 12:18:09 +01:00
parent 66036cd301
commit cdaa626068
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 33 additions and 0 deletions

View file

@ -9,6 +9,9 @@ services:
- HEALTHCHECKS_ID={{ vault_db_auto_backup_healthchecks_id }}
depends_on:
- docker_proxy
networks:
- default
- backup_private
docker_proxy:
image: lscr.io/linuxserver/socket-proxy:latest
@ -20,5 +23,13 @@ services:
- EXEC=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- backup_private
tmpfs:
- /run
logging:
driver: none
networks:
backup_private:
internal: true

View file

@ -10,6 +10,9 @@ services:
- DOCKER_HOST=tcp://docker_proxy:2375
restart: unless-stopped
command: forgejo-runner daemon
networks:
- default
- forgejo_private
depends_on:
- docker_proxy
@ -31,5 +34,11 @@ services:
- /run
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- forgejo_private
logging:
driver: none
networks:
forgejo_private:
internal: true

View file

@ -9,6 +9,9 @@ services:
- DOCKER_HOST=tcp://docker_proxy:2375
- LOG_LEVEL=debug # Noisy, but required for debugging
restart: unless-stopped
networks:
- default
- renovate_private
depends_on:
- redis
- docker_proxy
@ -33,5 +36,13 @@ services:
- IMAGES=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- renovate_private
tmpfs:
- /run
logging:
driver: none
networks:
renovate_private:
internal: true

View file

@ -29,6 +29,8 @@ services:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy_private
tmpfs:
- /run
logging:
driver: none