-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.override.yaml
58 lines (53 loc) · 1.56 KB
/
compose.override.yaml
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
version: "3.4"
# Development environment override
services:
php:
build:
context: .
target: frankenphp_dev
volumes:
- ./:/app
- ./docker/frankenphp/Caddyfile:/etc/caddy/Caddyfile:ro
- ./docker/frankenphp/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.dev.ini:ro
environment:
MERCURE_EXTRA_DIRECTIVES: demo
# See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
TRUSTED_HOSTS: ^${SERVER_NAME:-project-manager\.localhost|localhost}|php$$
DATABASE_URL: postgresql://user:password@database:5432/db_name?serverVersion=15&charset=${POSTGRES_CHARSET:-utf8}
POSTGRES_DB: db_name
extra_hosts:
# Ensure that host.docker.internal is correctly defined on Linux
- host.docker.internal:host-gateway
tty: true
database:
image: postgres:${POSTGRES_VERSION:-15}-alpine
ports:
- "5432"
environment:
POSTGRES_DB: ${POSTGRES_DB:-db_name}
# You should definitely change the password in production
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_USER: ${POSTGRES_USER:-user}
volumes:
- db-data:/var/lib/postgresql/data:rw
node:
env_file: .env
ports:
- 5173:5173
build:
context: ./docker/node/
args:
- HOST_USER=${HOST_USER:-1000}
- HOST_USERGROUP=${HOST_USERGROUP:-1000}
restart: unless-stopped
volumes:
- ./:/home/docker
command: "yarn dev"
mailer:
image: mailhog/mailhog:latest
ports:
- 1025
- "8025:8025"
volumes:
db-data: