Update compose to work in coolify

This commit is contained in:
Lewis Dale committed 2024-11-21 10:30:05 +00:00
1 parent 1fc58b8c0c
commit 79b3de19b9
2 files changed
+1254 -3

No files matched your search

+3 -3
View File
@@ -15,8 +15,8 @@ services:
expose: expose:
- 5432 - 5432
environment: environment:
POSTGRES_USER: postgres POSTGRES_USER: ${SERVICE_USER_POSTGRES}
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES}
POSTGRES_DB: baleen POSTGRES_DB: baleen
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "baleen"] test: ["CMD-SHELL", "pg_isready", "-d", "baleen"]
@@ -35,7 +35,7 @@ services:
- ./views:/var/www/html/views - ./views:/var/www/html/views
- ./bin:/var/www/html/bin - ./bin:/var/www/html/bin
environment: environment:
DB_CONNECTION: postgres://postgres:password@postgres:5432/baleen DB_CONNECTION: postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/baleen
entrypoint: sh -c "php bin/doctrine orm:schema-tool:update --complete --force && php-fpm" entrypoint: sh -c "php bin/doctrine orm:schema-tool:update --complete --force && php-fpm"
depends_on: depends_on:
postgres: postgres:
+1251
View File
File diff suppressed because it is too large. Load diff