this repo has no description

compose: update to build using dockerfile

hanna cadb3086 a27bd8f0

Changed files
+12 -14
+12 -14
docker-compose.yml
··· 1 services: 2 knot: 3 - build: 4 - context: .. 5 - dockerfile: docker/Dockerfile 6 environment: 7 KNOT_SERVER_HOSTNAME: ${KNOT_SERVER_HOSTNAME} 8 KNOT_SERVER_SECRET: ${KNOT_SERVER_SECRET} 9 - KNOT_SERVER_DB_PATH: "/app/knotserver.db" 10 - KNOT_REPO_SCAN_PATH: "/home/git/repositories" 11 - KNOT_SERVER_INTERNAL_LISTEN_ADDR: "localhost:5444" 12 volumes: 13 - - "./keys:/etc/ssh/keys" 14 - - "./repositories:/home/git/repositories" 15 - - "./server:/app" 16 ports: 17 - - "5555:5555" 18 - - "2222:22" 19 restart: always 20 frontend: 21 - image: caddy:2-alpine 22 command: > 23 caddy 24 reverse-proxy ··· 27 depends_on: 28 - knot 29 ports: 30 - - "${KNOT_SERVER_PORT:-443}:443" 31 - - "${KNOT_SERVER_PORT:-443}:443/udp" 32 volumes: 33 - caddy_data:/data 34 restart: always
··· 1 services: 2 knot: 3 + build: . 4 environment: 5 KNOT_SERVER_HOSTNAME: ${KNOT_SERVER_HOSTNAME} 6 KNOT_SERVER_SECRET: ${KNOT_SERVER_SECRET} 7 + KNOT_SERVER_DB_PATH: /app/knotserver.db 8 + KNOT_REPO_SCAN_PATH: /home/git/repositories 9 + KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444 10 volumes: 11 + - ./keys:/etc/ssh/keys 12 + - ./repositories:/home/git/repositories 13 + - ./server:/app 14 ports: 15 + - 5555:5555 16 + - 2222:22 17 restart: always 18 frontend: 19 + image: caddy:alpine 20 command: > 21 caddy 22 reverse-proxy ··· 25 depends_on: 26 - knot 27 ports: 28 + - ${KNOT_SERVER_PORT:-443}:443 29 + - ${KNOT_SERVER_PORT:-443}:443/udp 30 volumes: 31 - caddy_data:/data 32 restart: always