forked from api-platform/api-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
45 lines (41 loc) · 1 KB
/
docker-compose.override.yml
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
version: "3.4"
# Development environment override
services:
php:
volumes:
- ./api:/srv/api:rw,cached
- ./api/docker/php/conf.d/api-platform.dev.ini:/usr/local/etc/php/conf.d/api-platform.ini
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./api/var:/srv/api/var:rw
environment:
APP_ENV: dev
pwa:
build:
context: ./pwa
target: api_platform_pwa_dev
volumes:
- ./pwa:/usr/src/pwa:rw,cached
caddy:
volumes:
- ./api/docker/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- ./api/public:/srv/api/public:ro
environment:
MERCURE_EXTRA_DIRECTIVES: demo /srv/mercure-assets/
ports:
# HTTP
- target: 80
published: 80
protocol: tcp
# HTTPS
- target: 443
published: 443
protocol: tcp
# HTTP/3
- target: 443
published: 443
protocol: udp
database:
ports:
- target: 5432
published: 5432
protocol: tcp