-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override-example.yaml
68 lines (61 loc) · 1.41 KB
/
docker-compose.override-example.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
59
60
61
62
63
64
65
66
67
68
version: '3.8'
services:
app.getsyllabus.local:
user: "1000"
image: ghcr.io/josepostiga/syllabus/php:dev
mailhog.getsyllabus.local:
image: mailhog/mailhog:v1.0.1
expose:
- 1025
ports:
- "8025:8025"
volumes:
- mailhog_data:/maildir
environment:
MH_STORAGE: maildir
restart: unless-stopped
networks:
- syllabus
postgres.getsyllabus.local:
image: postgres:13-alpine
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
POSTGRES_DB: syllabus
restart: unless-stopped
networks:
- syllabus
redis.getsyllabus.local:
image: redis:6-alpine
ports:
- "6379:6379"
restart: unless-stopped
command: redis-server --appendonly yes
networks:
- syllabus
caddy.getsyllabus.local:
labels:
- "traefik.enable=true"
- "traefik.http.routers.syllabus.entrypoints=http"
- "traefik.http.routers.syllabus.rule=HostRegexp(`getsyllabus.test`, `{subdomain:[\\S]+}.getsyllabus.test`)"
image: caddy:2-alpine
expose:
- 80
- 443
volumes:
- ./.docker/server/Caddyfile:/etc/caddy/Caddyfile:ro
- .:/var/www/html:delegated
restart: unless-stopped
networks:
- web
- syllabus
volumes:
mailhog_data:
postgres_data:
networks:
web:
external: true