2022-02-10 14:47:44 +00:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
2023-03-17 14:33:48 +00:00
|
|
|
php:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2022-02-10 14:47:44 +00:00
|
|
|
ports:
|
2023-03-17 14:33:48 +00:00
|
|
|
- "${APP_PORT:-8000}:80"
|
|
|
|
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
|
|
|
|
environment:
|
|
|
|
PGID: "${USERID:-9999}"
|
|
|
|
PUID: "${USERID:-9999}"
|
|
|
|
SSL_MODE: 'off'
|
2022-02-10 14:47:44 +00:00
|
|
|
volumes:
|
2023-03-17 14:33:48 +00:00
|
|
|
- .:/var/www/html:cached
|
|
|
|
postgres:
|
|
|
|
image: postgres:15-alpine
|
|
|
|
ports:
|
|
|
|
- "${FORWARD_DB_PORT:-5432}:5432"
|
2022-09-15 07:34:39 +00:00
|
|
|
volumes:
|
2023-03-17 14:33:48 +00:00
|
|
|
- db-coolify:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "${DB_USERNAME}"
|
|
|
|
POSTGRES_PASSWORD: "${DB_PASSWORD}"
|
|
|
|
POSTGRES_DB: "${DB_DATABASE}"
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: "trust"
|
|
|
|
healthcheck:
|
|
|
|
test:
|
|
|
|
[
|
|
|
|
"CMD-SHELL",
|
|
|
|
"pg_isready -U $$DB_USERNAME",
|
|
|
|
"-d",
|
|
|
|
"db_prod"
|
|
|
|
]
|
|
|
|
retries: 3
|
|
|
|
timeout: 5s
|
|
|
|
mailpit:
|
|
|
|
image: "axllent/mailpit:latest"
|
|
|
|
ports:
|
|
|
|
- "${FORWARD_MAILPIT_PORT:-1025}:1025"
|
|
|
|
- "${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025"
|
2022-02-10 14:47:44 +00:00
|
|
|
volumes:
|
2023-03-17 14:33:48 +00:00
|
|
|
db-coolify:
|
|
|
|
driver: local
|