Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
65 lines (65 loc) · 2.46 KB
/
Copy pathcompose.yaml
File metadata and controls
65 lines (65 loc) · 2.46 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
services:
orbit:
build:
context: ..
image: ${ORBIT_IMAGE:-orbit:local}
restart: unless-stopped
read_only: true
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
tmpfs: [/tmp:size=64m,mode=1777]
stop_grace_period: 40s
environment:
ORBIT_ENV: production
ORBIT_PUBLIC_ORIGIN: https://${ORBIT_DOMAIN:?Set ORBIT_DOMAIN in deploy/.env}
# Caddy, and loopback for the image healthcheck.
ORBIT_TRUSTED_PROXIES: 127.0.0.1/32,172.30.0.2/32
ORBIT_APP_KEY: ${ORBIT_APP_KEY:?Set ORBIT_APP_KEY in deploy/.env}
# Mail (see docs/operations.md#mail). Uncomment these lines, the mail port and the certificate volume.
# ORBIT_MAIL_ENABLED: 'true'
# ORBIT_MAIL_HOSTNAME: mx.example.com
# ORBIT_MAIL_MODE: relay # or direct
# ORBIT_MAIL_RELAY_CIDRS: 203.0.113.10/32 # relay mode: the relay's addresses
# ORBIT_MAIL_RELAY_AUTHSERV_ID: mx.relay.example # relay mode: its Authentication-Results ID
# ORBIT_MAIL_TLS_CERT: /etc/orbit/mail-tls/fullchain.pem # required in direct mode
# ORBIT_MAIL_TLS_KEY: /etc/orbit/mail-tls/privkey.pem
# The container runs without capabilities, so the listener uses port 2525 and the host maps port 25 to it.
# Docker must keep the client IP: set "userland-proxy": false in /etc/docker/daemon.json, or run this
# service with network_mode: host. Otherwise every client looks like the Docker gateway, and relay mode
# and SPF fail.
# ports: ['25:2525']
volumes:
- orbit-data:/var/lib/orbit
- orbit-backups:/var/backups/orbit
# - ./mail-tls:/etc/orbit/mail-tls:ro # mail certificate, readable by UID 65532
networks: [backend]
proxy:
image: caddy:2-alpine
restart: unless-stopped
environment:
ORBIT_DOMAIN: ${ORBIT_DOMAIN:?Set ORBIT_DOMAIN in deploy/.env}
ports: ['80:80', '443:443']
# The admin API answers on localhost:2019 once Caddy has loaded its configuration.
healthcheck:
test: ['CMD', 'wget', '-q', '-O', '/dev/null', 'http://127.0.0.1:2019/config/']
interval: 10s
timeout: 3s
start_period: 10s
retries: 3
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
networks:
backend:
ipv4_address: 172.30.0.2
networks:
backend:
ipam:
config:
- subnet: 172.30.0.0/24
volumes:
orbit-data:
orbit-backups:
caddy-data:
caddy-config: