-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (74 loc) · 1.66 KB
/
docker-compose.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.9"
services:
php:
image: ghcr.io/eventpoints/php:main
platform: linux/amd64
volumes:
- .:/app:cached
- php_socket:/var/run/php
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
healthcheck:
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
depends_on:
- database
caddy:
image: ghcr.io/eventpoints/caddy:main
platform: linux/amd64
depends_on:
- php
environment:
SERVER_NAME: localhost, caddy:80
MERCURE_PUBLIC_URL: "https://localhost/.well-known/mercure"
MERCURE_PUBLISHER_JWT_KEY: secret
MERCURE_SUBSCRIBER_JWT_KEY: secret
volumes:
- php_socket:/var/run/php
- caddy_data:/data
- caddy_config:/config
- ./public:/app/public
ports:
# HTTP
- target: 80
published: 80
protocol: tcp
# HTTPS
- target: 443
published: 443
protocol: tcp
# HTTP/3
- target: 443
published: 443
protocol: udp
js-watch:
image: ghcr.io/eventpoints/php:main
platform: linux/amd64
volumes:
- .:/app:cached
working_dir: /app
entrypoint: [ "" ]
command: "bash -c 'npm install && npm run watch'"
database:
image: postgres:13
ports:
- "5432:5432"
environment:
POSTGRES_DB: eventpoint
POSTGRES_PASSWORD: eventpoint
POSTGRES_USER: root
volumes:
- ./docker/db/data:/var/lib/postgresql/data:rw
adminer:
image: adminer:4.8.0
ports:
- "8000:8080"
environment:
ADMINER_DEFAULT_SERVER: database
depends_on:
- database
volumes:
php_socket:
caddy_data:
caddy_config: