-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.frankenphp.yml
More file actions
79 lines (74 loc) · 2.12 KB
/
docker-compose.frankenphp.yml
File metadata and controls
79 lines (74 loc) · 2.12 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.8'
services:
app:
image: serversideup/php:8.4-frankenphp
container_name: teal-app-franken
restart: unless-stopped
volumes:
- .:/var/www/html
environment:
- AUTORUN_ENABLED=true
- APP_ENV=production
- APP_DEBUG=false
- APP_URL=https://dotmavriq.life/teal
- ASSET_URL=https://dotmavriq.life/teal
- OCTANE_SERVER=frankenphp
- SERVER_NAME=:8080
- DB_CONNECTION=pgsql
- DB_HOST=db
- DB_PORT=5432
- DB_DATABASE=teal
- DB_USERNAME=teal
- DB_PASSWORD=secret
depends_on:
db:
condition: service_healthy
command: ["php", "artisan", "octane:start", "--server=frankenphp", "--host=0.0.0.0", "--port=8080"]
healthcheck:
test: ["CMD", "php", "artisan", "octane:status", "--server=frankenphp"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.teal.rule=Host(`dotmavriq.life`) && PathPrefix(`/teal`)"
- "traefik.http.routers.teal.priority=2000"
- "traefik.http.routers.teal.entrypoints=web,websecure"
- "traefik.http.routers.teal.tls.certresolver=myhttpchallenge"
- "traefik.http.routers.teal.middlewares=https_redirect@docker,teal-strip"
- "traefik.http.middlewares.teal-strip.stripprefix.prefixes=/teal"
- "traefik.http.services.teal-service.loadbalancer.server.port=8080"
db:
image: postgres:17-alpine
container_name: teal-db
restart: unless-stopped
environment:
- POSTGRES_DB=teal
- POSTGRES_USER=teal
- POSTGRES_PASSWORD=secret
volumes:
- teal-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U teal -d teal"]
interval: 5s
timeout: 5s
retries: 5
networks:
- web
pgadmin:
image: dpage/pgadmin4
container_name: teal-pgadmin
restart: unless-stopped
environment:
- PGADMIN_DEFAULT_EMAIL=admin@teal.test
- PGADMIN_DEFAULT_PASSWORD=secret
networks:
- web
networks:
web:
external: true
volumes:
teal-db-data: