Docker compose:
Docker compose:
services:
laravel:
build:
context: .
dockerfile: ./Dockerfile
target: staging
image: 'psyze-backend:staging'
ports:
- '${APP_PORT:-80}:8080'
# command: /usr/local/bin/run-supervisors.sh
environment:
WWWUSER: '${WWWUSER:-1000}'
WWWGROUP: '${WWWGROUP:-1000}'
APP_ENV: staging
APP_DEBUG: false
env_file:
- .env
volumes:
- .env:/var/www/html/.env
networks:
- psyze-network
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/up']
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
depends_on:
pgsql:
condition: service_healthy
redis:
condition: service_healthy
# And other stuff that doesnt matter