-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
79 lines (73 loc) · 2.43 KB
/
compose.yaml
File metadata and controls
79 lines (73 loc) · 2.43 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
services:
traefik:
image: traefik:v3.4
command:
- "--api.insecure=true"
- "--providers.docker"
- "--providers.docker.exposedByDefault=false"
- "--entrypoints.web.address=:80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`traefik.esv.localhost`)"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.entrypoints=web"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
postgres:
image: postgres:17.5-alpine
environment:
- POSTGRES_DB=esv
- POSTGRES_PASSWORD=esv
- POSTGRES_USER=esv
volumes:
- "postgres-data:/var/lib/postgresql/data:rw"
healthcheck:
test: [ "CMD", "pg_isready", "-d", "esv", "-U", "esv" ]
timeout: 5s
retries: 5
start_period: 60s
php:
image: ghcr.io/esportsvideos/php:1.0.0-dev
depends_on:
postgres:
condition: service_healthy
maildev:
condition: service_started
volumes:
- "./:/var/www:rw"
environment:
XDEBUG_MODE: "off"
extra_hosts:
- host.docker.internal:host-gateway
nginx:
image: nginx:1.27.5-alpine
depends_on:
- php
volumes:
- "./docker/nginx/templates/default.conf.template:/etc/nginx/templates/default.conf.template"
- "./public:/var/www/public"
labels:
- "traefik.enable=true"
- "traefik.http.routers.nginx.rule=Host(`api.esv.localhost`)"
environment:
- "PHP_FPM_HOST=php"
adminer:
image: adminer:4.8.1 # Upper version is bugged with DESIGN
depends_on:
- postgres
environment:
- ADMINER_DESIGN=dracula
- ADMINER_DEFAULT_SERVER=postgres
labels:
- "traefik.enable=true"
- "traefik.http.routers.adminer.rule=Host(`adminer.esv.localhost`)"
profiles:
- debug
maildev:
image: maildev/maildev:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.maildev.rule=Host(`mail.esv.localhost`)"
- "traefik.http.services.maildev.loadbalancer.server.port=1080"
volumes:
postgres-data: {}