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