-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
46 lines (43 loc) · 949 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
version: "3.7"
services:
app:
image: $IMAGE
user: elixir:elixir
env_file:
- .env_files/app
environment:
PORT: 4000
ports:
- "4000:4000"
volumes:
- ./log:/app/log
depends_on:
- db
- web
command: sh -c './wait-for.sh db:5432 -- ./run.sh'
db:
image: postgres:16.3-alpine
env_file:
- .env_files/db
environment:
POSTGRES_USER: thundermoon
POSTGRES_DB: thundermoon_prod
PG_DATA_DIR: data
volumes:
- ./data:/var/lib/postgresql/data
- /srv/backup/weekly/thundermoon.zero-x.net:/import
web:
image: caddy:2.8-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- /srv/sites/thundermoon.zero-x.net/Caddyfile:/etc/caddy/Caddyfile
#- ./site:/srv # static files
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config: