-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
51 lines (49 loc) · 1.9 KB
/
docker-compose.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
#file: noinspection SpellCheckingInspection
services:
capturethephone:
image: cutel/capturethephone:latest
restart: unless-stopped
depends_on:
- db
volumes:
- /var/lib/asterisk/sounds/cutelcapturethephone:/asterisksounds:ro
- ./data/capturethephone:/App/PersistedData
labels:
- "traefik.enable=true"
- "traefik.http.routers.capturethephone-https.rule=Host(`capturethephone.co.uk`)" #edit this to add your (sub?)domain
- "traefik.http.routers.capturethephone-https.entrypoints=websecure"
- "traefik.http.routers.capturethephone-https.tls=true"
- "traefik.http.services.capturethephone-https.loadbalancer.server.port=8080"
- "traefik.http.routers.capturethephone-https.tls.certresolver=le"
traefik:
image: traefik:v3.0
restart: unless-stopped
depends_on:
- capturethephone
command:
- "--log.level=DEBUG"
- "--api.insecure=false"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.le.acme.tlschallenge=true"
- "--certificatesresolvers.le.acme.email=your_email@example.com" #edit this to add your email
- "--certificatesresolvers.le.acme.storage=/letsencrypt/acme.json"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
ports:
- 80:80
- 443:443
volumes:
- ./data/traefik:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
db:
image: postgres:latest
restart: unless-stopped
volumes:
- ./data/db/:/var/lib/postgresql/data/
environment:
POSTGRES_DB: CutelCaptureThePhone
POSTGRES_USER: CutelCaptureThePhone
POSTGRES_PASSWORD: change_me_to_match_backend_appsettings #edit this to add your password