docker-compose: set pull_policy (#215)
All checks were successful
ansible-lint / gitleaks (push) Successful in -14m42s
ansible-lint / Ansible Lint (push) Successful in -14m17s

Reviewed-on: #215
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2024-10-23 18:20:04 +02:00 committed by Michael Grote
parent f66d296a23
commit 089d4c0d13
12 changed files with 27 additions and 4 deletions

View file

@ -5,6 +5,7 @@ services:
container_name: act-runner container_name: act-runner
image: gitea/act_runner image: gitea/act_runner
restart: always restart: always
pull_policy: missing
volumes: volumes:
- act_runner_data:/data - act_runner_data:/data
- ./config.yml:/config.yml - ./config.yml:/config.yml

View file

@ -4,6 +4,7 @@ services:
container_name: grampsweb container_name: grampsweb
image: ghcr.io/gramps-project/grampsweb:v24.8.0 # version image: ghcr.io/gramps-project/grampsweb:v24.8.0 # version
restart: always restart: always
pull_policy: missing
ports: ports:
- "6483:5000" # host:docker - "6483:5000" # host:docker
environment: environment:
@ -45,6 +46,7 @@ services:
image: redis:7.4.1-alpine image: redis:7.4.1-alpine
container_name: grampsweb_redis container_name: grampsweb_redis
restart: always restart: always
pull_policy: missing
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 30s interval: 30s

View file

@ -3,6 +3,7 @@ services:
container_name: "httpd-registry" container_name: "httpd-registry"
image: "registry.mgrote.net/httpd:latest" image: "registry.mgrote.net/httpd:latest"
restart: always restart: always
pull_policy: missing
volumes: volumes:
- uploads:/usr/local/apache2/htdocs/ - uploads:/usr/local/apache2/htdocs/
- "{{ compose_dest_basedir }}/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" - "{{ compose_dest_basedir }}/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro"
@ -13,6 +14,7 @@ services:
container_name: httpd-api container_name: httpd-api
image: "registry.mgrote.net/python-api-server:latest" image: "registry.mgrote.net/python-api-server:latest"
restart: always restart: always
pull_policy: missing
ports: ports:
- "5040:5000" - "5040:5000"
volumes: volumes:

View file

@ -4,6 +4,7 @@ services:
container_name: "mf-frontend" container_name: "mf-frontend"
image: "ghcr.io/miniflux/miniflux:2.2.0" image: "ghcr.io/miniflux/miniflux:2.2.0"
restart: always restart: always
pull_policy: missing
depends_on: depends_on:
- mf-db17 - mf-db17
environment: environment:
@ -35,6 +36,7 @@ services:
container_name: "mf-db" container_name: "mf-db"
image: "postgres:17.0" image: "postgres:17.0"
restart: always restart: always
pull_policy: missing
environment: environment:
POSTGRES_USER: miniflux POSTGRES_USER: miniflux
POSTGRES_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'miniflux_postgres_password', 'password') }}" POSTGRES_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'miniflux_postgres_password', 'password') }}"
@ -55,6 +57,7 @@ services:
depends_on: depends_on:
- miniflux - miniflux
restart: always restart: always
pull_policy: missing
environment: environment:
TZ: Europe/Berlin TZ: Europe/Berlin
MF_AUTH_TOKEN: "{{ lookup('viczem.keepass.keepass', 'miniflux_auth_token', 'password') }}" MF_AUTH_TOKEN: "{{ lookup('viczem.keepass.keepass', 'miniflux_auth_token', 'password') }}"

View file

@ -4,6 +4,7 @@ services:
container_name: "navidrome-mg" container_name: "navidrome-mg"
image: "deluan/navidrome:0.53.3" image: "deluan/navidrome:0.53.3"
restart: always restart: always
pull_policy: missing
environment: environment:
ND_LOGLEVEL: info ND_LOGLEVEL: info
ND_SESSIONTIMEOUT: 24h ND_SESSIONTIMEOUT: 24h

View file

@ -4,7 +4,8 @@ services:
image: "mariadb:11.5.2" image: "mariadb:11.5.2"
container_name: nextcloud-db container_name: nextcloud-db
command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF command: --transaction-isolation=READ-COMMITTED --log-bin=ROW --innodb_read_only_compressed=OFF
restart: unless-stopped restart: always
pull_policy: missing
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
@ -43,7 +44,8 @@ services:
hostname: nextcloud-redis hostname: nextcloud-redis
networks: networks:
- intern - intern
restart: unless-stopped restart: always
pull_policy: missing
command: "redis-server --requirepass {{ lookup('viczem.keepass.keepass', 'nextcloud_redis_host_password', 'password') }}" command: "redis-server --requirepass {{ lookup('viczem.keepass.keepass', 'nextcloud_redis_host_password', 'password') }}"
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "--pass", "{{ lookup('viczem.keepass.keepass', 'nextcloud_redis_host_password', 'password') }}", "--no-auth-warning", "ping"] test: ["CMD", "redis-cli", "--pass", "{{ lookup('viczem.keepass.keepass', 'nextcloud_redis_host_password', 'password') }}", "--no-auth-warning", "ping"]
@ -55,7 +57,8 @@ services:
nextcloud-cron: nextcloud-cron:
container_name: nextcloud-cron container_name: nextcloud-cron
image: "registry.mgrote.net/nextcloud-cronjob:latest" image: "registry.mgrote.net/nextcloud-cronjob:latest"
restart: unless-stopped restart: always
pull_policy: missing
network_mode: none network_mode: none
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
@ -68,7 +71,8 @@ services:
nextcloud-app: nextcloud-app:
image: "nextcloud:30.0.1" image: "nextcloud:30.0.1"
container_name: nextcloud-app container_name: nextcloud-app
restart: unless-stopped restart: always
pull_policy: missing
depends_on: depends_on:
- nextcloud-db - nextcloud-db
- nextcloud-redis - nextcloud-redis

View file

@ -3,6 +3,7 @@ services:
image: "registry.mgrote.net/postfix:latest" image: "registry.mgrote.net/postfix:latest"
container_name: postfix container_name: postfix
restart: always restart: always
pull_policy: missing
ports: ports:
- 1025:25 - 1025:25
environment: environment:

View file

@ -1,6 +1,7 @@
services: services:
oci-registry: oci-registry:
restart: always restart: always
pull_policy: missing
container_name: oci-registry container_name: oci-registry
image: "registry:2.8.3" image: "registry:2.8.3"
volumes: volumes:
@ -56,6 +57,7 @@ services:
networks: networks:
- intern - intern
restart: always restart: always
pull_policy: missing
environment: environment:
REDIS_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'oci-registry-redis-pw', 'password') }}" REDIS_PASSWORD: "{{ lookup('viczem.keepass.keepass', 'oci-registry-redis-pw', 'password') }}"
MAXMEMORY POLICY: allkeys-lru MAXMEMORY POLICY: allkeys-lru
@ -67,6 +69,7 @@ services:
oci-registry-ui: oci-registry-ui:
restart: always restart: always
pull_policy: missing
# url: registry.mgrote.net/ui/index.html # url: registry.mgrote.net/ui/index.html
image: "joxit/docker-registry-ui:2.5.7" image: "joxit/docker-registry-ui:2.5.7"
container_name: oci-registry-ui container_name: oci-registry-ui

View file

@ -2,6 +2,7 @@ services:
routeros-config-export: routeros-config-export:
container_name: routeros-config-export container_name: routeros-config-export
restart: always restart: always
pull_policy: missing
image: "registry.mgrote.net/routeros-config-export:latest" image: "registry.mgrote.net/routeros-config-export:latest"
volumes: volumes:
- ./key_rb5009:/key_rb5009:ro - ./key_rb5009:/key_rb5009:ro

View file

@ -4,6 +4,7 @@ services:
container_name: traefik container_name: traefik
image: "traefik:v3.1.6" image: "traefik:v3.1.6"
restart: always restart: always
pull_policy: missing
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yml - ./traefik.yml:/etc/traefik/traefik.yml
@ -27,6 +28,7 @@ services:
######## nforwardauth ######## ######## nforwardauth ########
nforwardauth: nforwardauth:
restart: always restart: always
pull_policy: missing
image: "nosduco/nforwardauth:v1.4.0" image: "nosduco/nforwardauth:v1.4.0"
container_name: traefik-nforwardauth container_name: traefik-nforwardauth
environment: environment:

View file

@ -27,6 +27,7 @@ services:
- 6789:6789 #optional - 6789:6789 #optional
- 5514:5514/udp #optional - 5514:5514/udp #optional
restart: always restart: always
pull_policy: missing
networks: networks:
- postfix - postfix
- unifi-internal - unifi-internal
@ -49,6 +50,7 @@ services:
volumes: volumes:
- db-data:/data/db - db-data:/data/db
restart: always restart: always
pull_policy: missing
environment: environment:
MARIADB_AUTO_UPGRADE: "1" MARIADB_AUTO_UPGRADE: "1"
networks: networks:

View file

@ -3,6 +3,7 @@ services:
container_name: wiki-webserver container_name: wiki-webserver
image: "registry.mgrote.net/httpd:latest" image: "registry.mgrote.net/httpd:latest"
restart: always restart: always
pull_policy: missing
networks: networks:
- traefik - traefik
ports: ports: