restart: always

single-dockerfile
Trammell Hudson 3 years ago
parent 9d9087e4b0
commit 0a3514fcc8
  1. 2
      grafana/docker-compose.yaml
  2. 2
      keycloak/docker-compose.yaml
  3. 4
      mastodon/docker-compose.yaml
  4. 4
      nextcloud/docker-compose.yaml
  5. 1
      nginx/docker-compose.yaml

@ -17,7 +17,7 @@ services:
# auth URLs are in the env.secrets since they have hostname expansion # auth URLs are in the env.secrets since they have hostname expansion
volumes: volumes:
- ../data/grafana:/var/lib/grafana - ../data/grafana:/var/lib/grafana
restart: unless-stopped restart: always
ports: ports:
- 8000:3000 - 8000:3000
env_file: env_file:

@ -7,6 +7,7 @@ volumes:
services: services:
mysql: mysql:
image: mysql:5.7 image: mysql:5.7
restart: always
volumes: volumes:
- ../data/keycloak/database:/var/lib/mysql - ../data/keycloak/database:/var/lib/mysql
environment: environment:
@ -17,6 +18,7 @@ services:
keycloak: keycloak:
image: quay.io/keycloak/keycloak:18.0.0 image: quay.io/keycloak/keycloak:18.0.0
restart: always
entrypoint: /opt/keycloak/bin/kc.sh start --hostname="$${KEYCLOAK_HOSTNAME}" --proxy=edge entrypoint: /opt/keycloak/bin/kc.sh start --hostname="$${KEYCLOAK_HOSTNAME}" --proxy=edge
user: "0:0" # otherwise the persistent data directory is not writable user: "0:0" # otherwise the persistent data directory is not writable
env_file: env_file:

@ -16,8 +16,8 @@ services:
#- POSTGRES_DB=mastodon_production #- POSTGRES_DB=mastodon_production
redis: redis:
restart: always
image: redis:6-alpine image: redis:6-alpine
restart: always
networks: networks:
- internal_network - internal_network
healthcheck: healthcheck:
@ -26,8 +26,8 @@ services:
- ../data/mastodon/redis:/data - ../data/mastodon/redis:/data
es: es:
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2 image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
restart: always
environment: environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "cluster.name=es-mastodon" - "cluster.name=es-mastodon"

@ -3,17 +3,17 @@ version: "3"
services: services:
database: database:
image: postgres:13.4-alpine image: postgres:13.4-alpine
restart: always
environment: environment:
- POSTGRES_USER=nextcloud - POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud - POSTGRES_PASSWORD=nextcloud
- POSTGRES_DB=nextcloud - POSTGRES_DB=nextcloud
volumes: volumes:
- ../data/nextcloud/database:/var/lib/postgresql/data - ../data/nextcloud/database:/var/lib/postgresql/data
restart: always
nextcloud: nextcloud:
image: nextcloud:23.0.4 image: nextcloud:23.0.4
restart: unless-stopped restart: always
ports: ports:
- 9000:80 - 9000:80
env_file: env_file:

@ -2,6 +2,7 @@ version: '3'
services: services:
nginx: nginx:
image: nginx:1.21-alpine image: nginx:1.21-alpine
restart: always
ports: ports:
- "80:80" - "80:80"
- "443:443" - "443:443"

Loading…
Cancel
Save