Config files for my server. Except not my secrets
1services:
2 prs:
3 build: https://tangled.sh/@vielle.dev/site.git
4 restart: unless-stopped
5 env_file: ./prs.env
6 volumes:
7 - type: bind
8 source: ./prs.refreshToken
9 target: /app/.refreshToken
10
11 landing:
12 build: ./landing
13 environment:
14 - PORT=8000
15 - PDS=http://100.84.64.24:8000
16 - KNOT_HOST=http://100.84.64.24:5555
17 # tangled uses a plain domain name for knots in lexicons. imo this is bad but it is what it is rn
18 # allows me to have a diff HOST to the public one which may improve speeds ig?
19 - KNOT_NAME=knot.vielle.dev
20 restart: unless-stopped
21
22 caddy:
23 build:
24 context: ./
25 dockerfile: ./caddy/Dockerfile
26 restart: unless-stopped
27 ports:
28 - 80:80
29 - 443:443
30 volumes:
31 - ./caddy:/etc/caddy
32 - ./server-health.txt:/reverse_proxy_health.txt
33 - caddy_data:/data
34 - caddy_config:/config
35 environment:
36 HOST: vielle.dev
37 DONG_HOST: dongs.zip
38 PDS_ADMIN_EMAIL: admin@vielle.dev
39 PI_ADDRESS: "100.84.64.24"
40 PI_PORT_PDS: 8000
41 PI_PORT_KNOT: 5555
42 PI_PORT_PIPER: 8010
43 depends_on:
44 - prs
45 - landing
46
47 # nginx for ssh reverse proxy
48 # because caddy hates woke
49 nginx:
50 image: nginx
51 restart: unless-stopped
52 ports:
53 - 22001:2222
54 volumes:
55 - ./nginx.conf:/etc/nginx/nginx.conf
56
57volumes:
58 caddy_data:
59 caddy_config: