solidtime/docker-compose.yml aktualisiert

Fix now to a working Template
This commit is contained in:
kevinheyer 2025-03-31 08:52:18 +00:00
parent 5b896beec8
commit 471842bffc

View file

@ -5,41 +5,41 @@ services:
restart: always restart: always
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.solidtime.entrypoints=http" - "traefik.http.routers.solidtime.entrypoints=http"
- "traefik.http.routers.solidtime.rule=Host(`${SOLIDTIME_DOMAIN:?error}`)" - "traefik.http.routers.solidtime.rule=Host(`${SOLIDTIME_DOMAIN}`)"
- "traefik.http.middlewares.solidtime-https-redirect.redirectscheme.scheme=https" - "traefik.http.middlewares.solidtime-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.solidtime.middlewares=solidtime-https-redirect" - "traefik.http.routers.solidtime.middlewares=solidtime-https-redirect"
- "traefik.http.routers.solidtime-secure.entrypoints=https" - "traefik.http.routers.solidtime-secure.entrypoints=https"
- "traefik.http.routers.solidtime-secure.rule=Host(`${SOLIDTIME_DOMAIN:?error}`)" - "traefik.http.routers.solidtime-secure.rule=Host(`${SOLIDTIME_DOMAIN}`)"
- "traefik.http.routers.solidtime-secure.tls=true" - "traefik.http.routers.solidtime-secure.tls=true"
- "traefik.http.routers.solidtime-secure.service=solidtime"
- "traefik.http.services.solidtime.loadbalancer.server.port=8000" - "traefik.http.services.solidtime.loadbalancer.server.port=8000"
- "traefik.docker.network=internal"
networks: networks:
- traefik - internal
- solidtime - solidtime
volumes: volumes:
- "app-storage:/var/www/html/storage" - "app-storage:/var/www/html/storage"
- "./data/logs:/var/www/html/storage/logs" - "logs:/var/www/html/storage/logs"
- "./data/app-storage:/var/www/html/storage/app"
environment: environment:
CONTAINER_MODE: http CONTAINER_MODE: http
AUTO_DB_MIGRATE: true
healthcheck: healthcheck:
test: [ "CMD-SHELL", "curl --fail http://localhost:8000/health-check/up || exit 1" ] test: [ "CMD-SHELL", "curl --fail http://localhost:8000/health-check/up || exit 1" ]
env_file: env_file:
- laravel.env - laravel.env
- .env
depends_on: depends_on:
- database - database
scheduler: scheduler:
image: "solidtime/solidtime:${SOLIDTIME_VERSION:-latest}" image: "solidtime/solidtime:${SOLIDTIME_VERSION:-latest}"
container_name: solidtime-scheduler
restart: always restart: always
networks: networks:
- solidtime - solidtime
volumes: volumes:
- "app-storage:/var/www/html/storage" - "app-storage:/var/www/html/storage"
- "./data/logs:/var/www/html/storage/logs" - "logs:/var/www/html/storage/logs"
- "./data/app-storage:/var/www/html/storage/app"
environment: environment:
CONTAINER_MODE: scheduler CONTAINER_MODE: scheduler
healthcheck: healthcheck:
@ -52,12 +52,12 @@ services:
queue: queue:
restart: always restart: always
image: "solidtime/solidtime:${SOLIDTIME_VERSION:-latest}" image: "solidtime/solidtime:${SOLIDTIME_VERSION:-latest}"
container_name: solidtime-queue
networks: networks:
- solidtime - solidtime
volumes: volumes:
- "app-storage:/var/www/html/storage" - "app-storage:/var/www/html/storage"
- "./data/logs:/var/www/html/storage/logs" - "logs:/var/www/html/storage/logs"
- "./data/app-storage:/var/www/html/storage/app"
environment: environment:
CONTAINER_MODE: worker CONTAINER_MODE: worker
WORKER_COMMAND: "php /var/www/html/artisan queue:work" WORKER_COMMAND: "php /var/www/html/artisan queue:work"
@ -71,6 +71,7 @@ services:
database: database:
restart: always restart: always
image: 'postgres:${SOLIDTIME_POSTGRES_VERSION:-16}' image: 'postgres:${SOLIDTIME_POSTGRES_VERSION:-16}'
container_name: solidtime-db
environment: environment:
PGPASSWORD: '${SOLIDTIME_POSTGRES_PASSWORD:?error}' PGPASSWORD: '${SOLIDTIME_POSTGRES_PASSWORD:?error}'
POSTGRES_DB: '${SOLIDTIME_POSTGRES_DATABASE:?error}' POSTGRES_DB: '${SOLIDTIME_POSTGRES_DATABASE:?error}'
@ -94,16 +95,19 @@ services:
gotenberg: gotenberg:
image: gotenberg/gotenberg:8 image: gotenberg/gotenberg:8
container_name: solidtime-gotenberg
networks: networks:
- solidtime - solidtime
healthcheck: healthcheck:
test: [ "CMD", "curl", "--silent", "--fail", "http://localhost:3000/health" ] test: [ "CMD", "curl", "--silent", "--fail", "http://localhost:3000/health" ]
networks: networks:
traefik: internal:
external: true external: true
solidtime: solidtime:
driver: bridge
volumes: volumes:
database-storage: database-storage:
app-storage: app-storage:
logs: