-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
74 lines (71 loc) · 1.7 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
74 lines (71 loc) · 1.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
services:
sendry:
build:
context: .
dockerfile: Dockerfile
args:
TARGET: sendry
VERSION: ${VERSION:-dev}
COMMIT: ${COMMIT:-unknown}
BUILD_TIME: ${BUILD_TIME:-unknown}
image: sendry:${VERSION:-latest}
container_name: sendry
restart: unless-stopped
ports:
- "25:25"
- "465:465"
- "587:587"
- "8080:8080"
- "9090:9090"
volumes:
- sendry-data:/var/lib/sendry
- ./configs/sendry.example.yaml:/etc/sendry/config.yaml:ro
environment:
- TZ=${TZ:-UTC}
command: ["sendry", "serve", "--config", "/etc/sendry/config.yaml"]
healthcheck:
test: ["CMD", "/usr/bin/sendry", "version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
- sendry-net
sendry-web:
build:
context: .
dockerfile: Dockerfile
args:
TARGET: sendry-web
VERSION: ${VERSION:-dev}
COMMIT: ${COMMIT:-unknown}
BUILD_TIME: ${BUILD_TIME:-unknown}
image: sendry-web:${VERSION:-latest}
container_name: sendry-web
restart: unless-stopped
ports:
- "8088:8088"
volumes:
- sendry-web-data:/var/lib/sendry-web
- ./configs/web.example.yaml:/etc/sendry/web.yaml:ro
environment:
- TZ=${TZ:-UTC}
command: ["sendry-web", "serve", "--config", "/etc/sendry/web.yaml"]
healthcheck:
test: ["CMD", "/usr/bin/sendry-web", "version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- sendry-net
depends_on:
- sendry
volumes:
sendry-data:
driver: local
sendry-web-data:
driver: local
networks:
sendry-net:
driver: bridge