40 lines
784 B
YAML
40 lines
784 B
YAML
services:
|
|
bukidapp:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.php
|
|
expose:
|
|
- "9501"
|
|
volumes:
|
|
- .:/var/app
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "curl -f http://localhost:9501/health || exit 1" ]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
networks:
|
|
dokploy-network:
|
|
app-internal:
|
|
aliases:
|
|
- swoole-upstream
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
ports:
|
|
- "${APP_PORT:-9522}:80"
|
|
volumes:
|
|
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
|
|
- ./public:/var/app/public
|
|
networks:
|
|
- dokploy-network
|
|
- app-internal
|
|
depends_on:
|
|
- bukidapp
|
|
|
|
networks:
|
|
dokploy-network:
|
|
external: true
|
|
app-internal:
|
|
driver: bridge
|