-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (49 loc) · 1020 Bytes
/
docker-compose.yml
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
version: '3'
services:
self:
image: michaelpak/self
container_name: self
depends_on:
- postgres
env_file:
- .env
postgres:
image: postgres:12-alpine
container_name: postgres
volumes:
- postgresdata:/var/lib/postgresql/data
env_file:
- .env
environment:
- PGDATA=/var/lib/postgresql/data
caddy:
image: abiosoft/caddy:1.0.3
container_name: caddy
volumes:
- /opt/Caddyfile:/etc/Caddyfile
- caddydata:/root/.caddy
environment:
- ACME_AGREE=true
ports:
- "443:443"
depends_on:
- self
watchtower:
image: containrrr/watchtower
container_name: watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30
volumes:
postgresdata:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/postgresdata'
caddydata:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '/opt/caddydata'