this repo has no description

compose: update to build using dockerfile

hanna cadb3086 a27bd8f0

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