-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (62 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
65 lines (62 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
php:
build:
context: .
target: frankenphp_dev
container_name: ${PROJECT_NAME:-generateu}_app
volumes:
- ./:/app
- ./frankenphp/Caddyfile:/etc/frankenphp/Caddyfile:ro
- ./frankenphp/conf.d/20-app.dev.ini:/usr/local/etc/php/app.conf.d/20-app.dev.ini:ro
- caddy_data:/data
- caddy_config:/config
environment:
SERVER_NAME: ":8080"
FRANKENPHP_WORKER_CONFIG: watch
APP_RUNTIME: Runtime\FrankenPhpSymfony\Runtime
APP_ENV: dev
APP_DEBUG: "1"
APP_SECRET: ${APP_SECRET:-changeThisDevSecret123}
DATABASE_URL: postgresql://${DB_USER:-app}:${DB_PASS:-app}@database:5432/${DB_NAME:-app}?serverVersion=16
MAILER_DSN: smtp://mailpit:1025
MERCURE_URL: http://localhost:8080/.well-known/mercure
MERCURE_PUBLIC_URL: http://localhost:8080/.well-known/mercure
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET:-!GenerateuDevSecretKey!}
XDEBUG_MODE: ${XDEBUG_MODE:-off}
DEFAULT_URI: http://localhost:${APP_PORT:-8081}
ports:
- "${APP_PORT:-8081}:8080"
depends_on:
database:
condition: service_healthy
extra_hosts:
- host.docker.internal:host-gateway
tty: true
database:
image: postgis/postgis:16-3.4-alpine
container_name: ${PROJECT_NAME:-generateu}_db
ports:
- "${DB_PORT:-5432}:5432"
environment:
POSTGRES_DB: ${DB_NAME:-app}
POSTGRES_USER: ${DB_USER:-app}
POSTGRES_PASSWORD: ${DB_PASS:-app}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-app}"]
interval: 10s
timeout: 5s
retries: 5
mailpit:
image: axllent/mailpit:latest
container_name: ${PROJECT_NAME:-generateu}_mailpit
ports:
- "${MAILPIT_PORT:-8026}:8025"
- "1026:1025"
environment:
MP_MAX_MESSAGES: 5000
volumes:
postgres_data:
caddy_data:
caddy_config: