0
0

Isolated Docker networks

This commit is contained in:
Opnxng 2023-11-10 05:28:42 +08:00
parent b178162ced
commit 5a4e130b58
34 changed files with 118 additions and 147 deletions

View File

@ -20,9 +20,8 @@ services:
ports: ports:
- '8907:80' - '8907:80'
networks: networks:
- IPv4 - 4get
networks: networks:
IPv4: 4get:
external: name: 4get
name: IPv4

View File

@ -18,9 +18,8 @@ services:
ports: ports:
- '8898:8080' - '8898:8080'
networks: networks:
- IPv4 - anonymousoverflow
networks: networks:
IPv4: anonymousoverflow:
external: name: anonymousoverflow
name: IPv4

View File

@ -16,9 +16,8 @@ services:
- {{ docker_dir }}/authelia:/config - {{ docker_dir }}/authelia:/config
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - authelia
networks: networks:
IPv4: authelia:
external: name: authelia
name: IPv4

View File

@ -14,9 +14,8 @@ services:
ports: ports:
- '8896:80' - '8896:80'
networks: networks:
- IPv4 - binternet
networks: networks:
IPv4: binternet:
external: name: binternet
name: IPv4

View File

@ -16,9 +16,8 @@ services:
volumes: volumes:
- {{ docker_dir }}/breezewiki/config.ini:/app/config.ini - {{ docker_dir }}/breezewiki/config.ini:/app/config.ini
networks: networks:
- IPv4 - breezewiki
networks: networks:
IPv4: breezewiki:
external: name: breezewiki
name: IPv4

View File

@ -14,9 +14,8 @@ services:
- 8901:80 - 8901:80
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - cinny
networks: networks:
IPv4: cinny:
external: name: cinny
name: IPv4

View File

@ -40,7 +40,7 @@ services:
- 8891:9001 - 8891:9001
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - etherpad
etherpaddb: etherpaddb:
image: postgres:16-alpine image: postgres:16-alpine
@ -60,9 +60,8 @@ services:
- {{ docker_dir }}/etherpad/dump:/dump - {{ docker_dir }}/etherpad/dump:/dump
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - etherpad
networks: networks:
IPv4: etherpad:
external: name: etherpad
name: IPv4

View File

@ -28,11 +28,10 @@ services:
shm_size: "2gb" shm_size: "2gb"
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - firefox
networks: networks:
IPv4: firefox:
external: name: firefox
name: IPv4

View File

@ -18,8 +18,8 @@ services:
volumes: volumes:
- {{ docker_dir }}/caddy/:/usr/share/GeoIP/ - {{ docker_dir }}/caddy/:/usr/share/GeoIP/
networks: networks:
- IPv4 - geoipupdate
networks: networks:
IPv4: geoipupdate:
external: name: geoipupdate
name: IPv4

View File

@ -30,7 +30,7 @@ services:
ports: ports:
- "3000:3000" - "3000:3000"
networks: networks:
- IPv4 - gitea
gitea-db: gitea-db:
image: postgres:14 image: postgres:14
@ -48,12 +48,10 @@ services:
- {{ docker_dir }}/gitea/data/postgres:/var/lib/postgresql/data - {{ docker_dir }}/gitea/data/postgres:/var/lib/postgresql/data
restart: always restart: always
networks: networks:
- IPv4 - gitea
networks: networks:
IPv4: gitea:
external: name: gitea
name: IPv4
# Cron in Gitea Action only works in Nightly for now # Cron in Gitea Action only works in Nightly for now

View File

@ -30,9 +30,8 @@ services:
ports: ports:
- '8900:3000' - '8900:3000'
networks: networks:
- IPv4 - gothub
networks: networks:
IPv4: gothub:
external: name: gothub
name: IPv4

View File

@ -15,9 +15,8 @@ services:
ports: ports:
- '8899:8080' - '8899:8080'
networks: networks:
- IPv4 - imgin
networks: networks:
IPv4: imgin:
external: name: imgin
name: IPv4

View File

@ -14,9 +14,8 @@ services:
ports: ports:
- 8892:80 - 8892:80
networks: networks:
- IPv4 - it-tools
networks: networks:
IPv4: it-tools:
external: name: it-tools
name: IPv4

View File

@ -20,9 +20,8 @@ services:
ports: ports:
- 8882:8080 - 8882:8080
networks: networks:
- IPv4 - libreddit
networks: networks:
IPv4: libreddit:
external: name: libreddit
name: IPv4

View File

@ -20,9 +20,8 @@ services:
ports: ports:
- 8882:8080 - 8882:8080
networks: networks:
- IPv4 - libreddit
networks: networks:
IPv4: libreddit:
external: name: libreddit
name: IPv4

View File

@ -19,9 +19,8 @@ services:
- 8905:3000 - 8905:3000
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - libremdb
networks: networks:
IPv4: libremdb:
external: name: libremdb
name: IPv4

View File

@ -20,9 +20,8 @@ services:
ports: ports:
- '8902:8080' - '8902:8080'
networks: networks:
- IPv4 - mlmym
networks: networks:
IPv4: mlmym:
external: name: mlmym
name: IPv4

View File

@ -26,7 +26,7 @@ services:
timeout: 5s timeout: 5s
retries: 2 retries: 2
networks: networks:
- IPv4 - nitter
nitter-redis: nitter-redis:
image: redis:alpine image: redis:alpine
@ -47,9 +47,8 @@ services:
timeout: 5s timeout: 5s
retries: 2 retries: 2
networks: networks:
- IPv4 - nitter
networks: networks:
IPv4: nitter:
external: name: nitter
name: IPv4

View File

@ -31,12 +31,11 @@ services:
retries: 3 retries: 3
start_period: 40s start_period: 40s
networks: networks:
- IPv4 - ntfy
networks: networks:
IPv4: ntfy:
external: name: ntfy
name: IPv4
# touch {{ docker_dir }}/ntfy/cache.db && touch {{ docker_dir }}/ntfy/user.db # touch {{ docker_dir }}/ntfy/cache.db && touch {{ docker_dir }}/ntfy/user.db
# docker exec -it ntfy ntfy user add --role=admin opnxng # docker exec -it ntfy ntfy user add --role=admin opnxng

View File

@ -19,9 +19,8 @@ services:
ports: ports:
- '8903:3000' - '8903:3000'
networks: networks:
- IPv4 - photon
networks: networks:
IPv4: photon:
external: name: photon
name: IPv4

View File

@ -14,11 +14,10 @@ services:
volumes: volumes:
- {{ docker_dir }}/privatebin/data:/srv/data - {{ docker_dir }}/privatebin/data:/srv/data
networks: networks:
- IPv4 - privatebin
networks: networks:
IPv4: privatebin:
external: name: privatebin
name: IPv4
# sudo chown 65534:82 {{ docker_dir }}/privatebin/data # sudo chown 65534:82 {{ docker_dir }}/privatebin/data

View File

@ -32,7 +32,7 @@ services:
ports: ports:
- 8908:3000 - 8908:3000
networks: networks:
- IPv4 - proxigram
proxigram-redis: proxigram-redis:
container_name: proxigram-redis container_name: proxigram-redis
@ -45,9 +45,8 @@ services:
- REDIS_URL=redis:6379 - REDIS_URL=redis:6379
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - proxigram
networks: networks:
IPv4: proxigram:
external: name: proxigram
name: IPv4

View File

@ -30,7 +30,7 @@ services:
- proxitok-redis - proxitok-redis
- signer - signer
networks: networks:
- IPv4 - proxitok
proxitok-redis: proxitok-redis:
container_name: proxitok-redis container_name: proxitok-redis
@ -50,7 +50,7 @@ services:
- ALL - ALL
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - proxitok
signer: signer:
container_name: proxitok-signer container_name: proxitok-signer
@ -67,8 +67,8 @@ services:
cap_drop: cap_drop:
- ALL - ALL
networks: networks:
- IPv4 - proxitok
networks: networks:
IPv4: proxitok:
external: name: proxitok
name: IPv4

View File

@ -16,8 +16,8 @@ services:
- 8904:3000 - 8904:3000
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - quetre
networks: networks:
IPv4: quetre:
external: name: quetre
name: IPv4

View File

@ -14,8 +14,8 @@ services:
ports: ports:
- '8910:8886' - '8910:8886'
networks: networks:
- IPv4 - rat-aint-tieba
networks: networks:
IPv4: rat-aint-tieba:
external: name: rat-aint-tieba
name: IPv4

View File

@ -22,11 +22,11 @@ services:
- GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_registration_token }} - GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_registration_token }}
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster,runner:host - GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster,runner:host
networks: networks:
- IPv4 - runner
networks: networks:
IPv4: runner:
external: name: runner
name: IPv4
# DinD containers cannot resolve *.github.com unless daemon.json is mounted # DinD containers cannot resolve *.github.com unless daemon.json is mounted
# https://gitea.com/gitea/act_runner/issues/381#issuecomment-755182 # https://gitea.com/gitea/act_runner/issues/381#issuecomment-755182

View File

@ -21,8 +21,8 @@ services:
ports: ports:
- 8890:8088 - 8890:8088
networks: networks:
- IPv4 - scribe
networks: networks:
IPv4: scribe:
external: name: scribe
name: IPv4

View File

@ -28,7 +28,7 @@ services:
ports: ports:
- 8886:1443 - 8886:1443
networks: networks:
- IPv4 - send
labels: labels:
- "com.centurylinklabs.watchtower.enable=false" - "com.centurylinklabs.watchtower.enable=false"
@ -48,13 +48,11 @@ services:
labels: labels:
- "com.centurylinklabs.watchtower.enable=false" - "com.centurylinklabs.watchtower.enable=false"
networks: networks:
- IPv4 - send
networks: networks:
IPv4: send:
external: name: send
name: IPv4
# Clear expired uploads # Clear expired uploads
# 0 */3 * * * find {{ docker_dir }}/send/uploads/ -name 7-\* -mmin +10130 -exec rm {} \; # 0 */3 * * * find {{ docker_dir }}/send/uploads/ -name 7-\* -mmin +10130 -exec rm {} \;

View File

@ -22,8 +22,8 @@ services:
- 8889:5000 - 8889:5000
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - simplytranslate
networks: networks:
IPv4: simplytranslate:
external: name: simplytranslate
name: IPv4

View File

@ -20,8 +20,8 @@ services:
ports: ports:
- 8887:8080 - 8887:8080
networks: networks:
- IPv4 - stirling-pdf
networks: networks:
IPv4: stirling-pdf:
external: name: stirling-pdf
name: IPv4

View File

@ -33,7 +33,7 @@ services:
logging: logging:
driver: none driver: none
networks: networks:
- IPv4 - teddit
teddit-redis: teddit-redis:
container_name: teddit-redis container_name: teddit-redis
@ -46,9 +46,8 @@ services:
- REDIS_REPLICATION_MODE=master - REDIS_REPLICATION_MODE=master
restart: unless-stopped restart: unless-stopped
networks: networks:
- IPv4 - teddit
networks: networks:
IPv4: teddit:
external: name: teddit
name: IPv4

View File

@ -15,9 +15,8 @@ services:
ports: ports:
- '8895:5314' - '8895:5314'
networks: networks:
- IPv4 - voyager
networks: networks:
IPv4: voyager:
external: name: voyager
name: IPv4

View File

@ -14,8 +14,8 @@ services:
ports: ports:
- '8906:80' - '8906:80'
networks: networks:
- IPv4 - wolfree
networks: networks:
IPv4: wolfree:
external: name: wolfree
name: IPv4

View File

@ -1,9 +1,6 @@
saetup:
oracle3:
- runner
compose: compose:
oracle3: oracle4:
- runner - caddy
# ---------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------