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
volumes:
- ../data/grafana:/var/lib/grafana
restart: unless-stopped
restart: always
ports:
- 8000:3000
env_file:

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

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

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

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

Loading…
Cancel
Save