-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·94 lines (89 loc) · 2.7 KB
/
docker-compose.yml
File metadata and controls
executable file
·94 lines (89 loc) · 2.7 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
traefik:
image: traefik:v2.11
restart: unless-stopped
command:
- "--api.insecure=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.file.directory=/etc/traefik/dynamic"
- "--providers.file.watch=true"
- "--entrypoints.web.address=:80"
- "--log.level=INFO"
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./.compose/traefik/dynamic:/etc/traefik/dynamic:ro
extra_hosts:
- "host.docker.internal:host-gateway"
ldap:
image: osixia/openldap:1.5.0
environment:
LDAP_ORGANISATION: "Docker"
LDAP_DOMAIN: "docker.internal"
LDAP_ADMIN_PASSWORD: "admin"
LDAP_CONFIG_PASSWORD: "config"
LDAP_READONLY_USER: "false"
LDAP_RFC2307BIS_SCHEMA: "false"
LDAP_BACKEND: "mdb"
LDAP_TLS: "false"
LDAP_LOG_LEVEL: "256"
LDAP_REMOVE_CONFIG_AFTER_SETUP: "false"
DISABLE_CHOWN: "true"
ports:
- "389:389"
volumes:
- ./.compose/ldap/bootstrap:/container/service/slapd/assets/config/bootstrap/ldif/custom
healthcheck:
test: ["CMD-SHELL", "ldapsearch -x -b 'dc=docker,dc=internal' -H ldap://localhost || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
smtp:
image: changemakerstudiosus/papercut-smtp:latest
ports:
- "2525:25"
synapse:
image: matrixdotorg/synapse:v1.119.0
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
traefik:
condition: service_started
ports:
- "8008:8008"
volumes:
- ./.compose/synapse/.data:/data
- ./.compose/synapse/pgsql.yaml:/data/homeserver.yaml:ro
- ./.compose/synapse/docker.internal.log.config:/data/docker.internal.log.config:ro
- ./.compose/synapse/docker.internal.signing.key:/data/docker.internal.signing.key:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.synapse.rule=Host(`matrix.docker.internal`)"
- "traefik.http.routers.synapse.entrypoints=web"
- "traefik.http.services.synapse.loadbalancer.server.port=8008"
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: twake
POSTGRES_PASSWORD: twake_password
POSTGRES_DB: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
- ./.compose/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U twake"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
postgres-data: