adding .env to compose file

This commit is contained in:
Codex Agent
2025-11-24 08:00:53 +01:00
parent 6d5ba93e85
commit 6c84a41826

View File

@@ -39,6 +39,8 @@ services:
app:
build: *app-build
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest}
env_file:
- path: .env
environment:
<<: *app-env
APP_SOURCE: /opt/app
@@ -76,6 +78,8 @@ services:
- npm ci && npm run build
volumes:
- app-code:/var/www/html
env_file:
- path: .env
depends_on:
app:
condition: service_healthy
@@ -105,6 +109,8 @@ services:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./docs/site/build:/var/www/docs-site:ro
- ./docker/nginx/.htpasswd-docs:/etc/nginx/.htpasswd-docs:ro
env_file:
- path: .env
networks:
- default
- dokploy-network
@@ -112,6 +118,8 @@ services:
photobooth-ftp:
image: delfer/alpine-ftp-server:latest
env_file:
- path: .env
environment:
USERS: ${PHOTOBOOTH_FTP_USERS:-seed|changeme|/home/ftpusers/photobooth}
ADDRESS: ${PHOTOBOOTH_FTP_ADDRESS:-test-y0k0.fotospiel.app}
@@ -133,6 +141,8 @@ services:
queue:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest}
env_file:
- path: .env
command: /var/www/html/scripts/queue-worker.sh default
environment:
<<: *app-env
@@ -150,6 +160,8 @@ services:
media-storage-worker:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest}
env_file:
- path: .env
command: /var/www/html/scripts/queue-worker.sh media-storage
environment:
<<: *app-env
@@ -169,6 +181,8 @@ services:
scheduler:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest}
env_file:
- path: .env
command: php artisan schedule:work
environment:
<<: *app-env
@@ -185,6 +199,8 @@ services:
horizon:
image: registry.internal:5443/${APP_IMAGE:-fotospiel-app:latest}
env_file:
- path: .env
command: /var/www/html/scripts/horizon.sh
environment:
<<: *app-env