mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
Update docker-compose-parser.yaml
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: nginx
|
image: nginx
|
||||||
@@ -7,8 +8,25 @@ services:
|
|||||||
APP_DEBUG: '${APP_DEBUG:-false}'
|
APP_DEBUG: '${APP_DEBUG:-false}'
|
||||||
APP_URL: $SERVICE_FQDN_APP
|
APP_URL: $SERVICE_FQDN_APP
|
||||||
volumes:
|
volumes:
|
||||||
- './html:/var/www/html'
|
- './:/var/www/html'
|
||||||
- 'test-db:/db'
|
- './nginx:/etc/nginx'
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
db:
|
||||||
|
image: postgres
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- pg_isready
|
||||||
|
- '-U'
|
||||||
|
- postgres
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
ipv4_address: 127.0.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user