USe unless-stopped instead of always

This commit is contained in:
Stefan Bethke 2024-09-08 17:45:00 +02:00
parent 475a758f83
commit dfbc8e58a9
6 changed files with 15 additions and 15 deletions

View file

@ -10,7 +10,7 @@
services: services:
uptime-kuma: uptime-kuma:
image: louislam/uptime-kuma:1 image: louislam/uptime-kuma:1
restart: always restart: unless-stopped
volumes: volumes:
- "./uptime-kuma-data:/app/data" - "./uptime-kuma-data:/app/data"
ports: ports:

View file

@ -15,7 +15,7 @@ services:
- database:/var/lib/mysql - database:/var/lib/mysql
networks: networks:
backend: backend:
restart: always restart: unless-stopped
app: app:
image: docker.io/library/wordpress:6-php8.1 image: docker.io/library/wordpress:6-php8.1
@ -32,7 +32,7 @@ services:
networks: networks:
backend: backend:
frontend: frontend:
restart: always restart: unless-stopped
depends_on: depends_on:
- database - database

View file

@ -10,7 +10,7 @@ services:
- database:/var/lib/postgresql/data - database:/var/lib/postgresql/data
networks: networks:
backend: backend:
restart: always restart: unless-stopped
redis: redis:
image: docker.io/redis:7 image: docker.io/redis:7
@ -20,7 +20,7 @@ services:
- redis:/rdata - redis:/rdata
# run redis-server, save a snapshot every 60 seconds if there has been at least 1 write # run redis-server, save a snapshot every 60 seconds if there has been at least 1 write
command: ["redis-server", "--save", "60", "1"] command: ["redis-server", "--save", "60", "1"]
restart: always restart: unless-stopped
networks: networks:
backend: backend:
@ -32,7 +32,7 @@ services:
volumes: volumes:
- ./configs/pretix.cfg:/etc/pretix/pretix.cfg - ./configs/pretix.cfg:/etc/pretix/pretix.cfg
- pretix:/data - pretix:/data
restart: always restart: unless-stopped
networks: networks:
backend: backend:
frontend: frontend:
@ -41,7 +41,7 @@ services:
image: gitlab-cr.hamburg.ccc.de/ccchh/hackertours/hackertours:latest image: gitlab-cr.hamburg.ccc.de/ccchh/hackertours/hackertours:latest
ports: ports:
- "8888:80" - "8888:80"
restart: always restart: unless-stopped
networks: networks:
frontend: frontend:

View file

@ -47,7 +47,7 @@ services:
db: db:
image: postgres:15.2 image: postgres:15.2
restart: always restart: unless-stopped
networks: networks:
- keycloak - keycloak
volumes: volumes:
@ -60,7 +60,7 @@ services:
id-invite-web: id-invite-web:
image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest
command: web command: web
restart: always restart: unless-stopped
networks: networks:
- web - web
- email - email
@ -86,7 +86,7 @@ services:
id-invite-email: id-invite-email:
image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest
command: email command: email
restart: always restart: unless-stopped
networks: networks:
- email - email
- web - web
@ -101,7 +101,7 @@ services:
id-invite-keycloak: id-invite-keycloak:
image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest image: git.hamburg.ccc.de/ccchh/id-invite/id-invite:latest
command: keycloak command: keycloak
restart: always restart: unless-stopped
networks: networks:
- keycloak - keycloak
environment: environment:

View file

@ -10,7 +10,7 @@ services:
- "POSTGRES_DB=hedgedoc" - "POSTGRES_DB=hedgedoc"
volumes: volumes:
- database:/var/lib/postgresql/data - database:/var/lib/postgresql/data
restart: always restart: unless-stopped
app: app:
#image: quay.io/hedgedoc/hedgedoc:1.9.9 #image: quay.io/hedgedoc/hedgedoc:1.9.9
@ -42,7 +42,7 @@ services:
- uploads:/hedgedoc/public/uploads - uploads:/hedgedoc/public/uploads
ports: ports:
- "127.0.0.1:3000:3000" - "127.0.0.1:3000:3000"
restart: always restart: unless-stopped
depends_on: depends_on:
- database - database

View file

@ -10,7 +10,7 @@ services:
- "POSTGRES_DB=pretalx" - "POSTGRES_DB=pretalx"
volumes: volumes:
- database:/var/lib/postgresql/data - database:/var/lib/postgresql/data
restart: always restart: unless-stopped
redis: redis:
image: redis:latest image: redis:latest
@ -20,7 +20,7 @@ services:
static: static:
image: docker.io/library/nginx image: docker.io/library/nginx
restart: always restart: unless-stopped
volumes: volumes:
- public:/usr/share/nginx/html - public:/usr/share/nginx/html
ports: ports: