Docker config for @recaptime.dev's Tangled knotserver running on an Azure VM in Central India (via Azure for Students GitHub credits), previously ran for Hack Club community.
knot.recaptime.dev
1.1 kB
50 lines
1services:
2 knot:
3 hostname: knotserver-hackclub-community
4 image: "registry.gitlab.com/recaptime-dev/infra/knot-server-docker:${KNOT_DOCKER_IMAGE_TAG-latest}"
5 pull_policy: always
6 build:
7 context: .
8 args:
9 UID: 2897
10 GID: 2897
11 env_file:
12 - .env.production
13 volumes:
14 - ./keys:/etc/ssh/keys
15 - ./data/repos:/home/git/repositories
16 - ./data/db:/app/db
17 ports:
18 #- "44289:5555"
19 - "33939:22"
20 - "2243:22"
21 expose:
22 - 5555
23 restart: unless-stopped
24 networks:
25 - proxyparty-caddy
26 #frontend:
27 # image: caddy:alpine
28 # command: >
29 # caddy
30 # reverse-proxy
31 # --from ${KNOT_SERVER_HOSTNAME}
32 # --to knot:5555
33 # depends_on:
34 # - knot
35 # ports:
36 # - ${KNOT_SERVER_PORT:-443}:443
37 # - ${KNOT_SERVER_PORT:-443}:443/udp
38 # volumes:
39 # - ./caddy_data:/data
40 # restart: always
41 # profiles: ["caddy"]
42
43#volumes:
44# knot-db:
45# knot-repos:
46
47networks:
48 proxyparty-caddy:
49 name: proxyparty-caddy-router
50 external: true