this repo has no description

compose: update to build using dockerfile

hanna cadb3086 a27bd8f0

Changed files
+12 -14
+12 -14
docker-compose.yml
···
services:
knot:
-
build:
-
context: ..
-
dockerfile: docker/Dockerfile
+
build: .
environment:
KNOT_SERVER_HOSTNAME: ${KNOT_SERVER_HOSTNAME}
KNOT_SERVER_SECRET: ${KNOT_SERVER_SECRET}
-
KNOT_SERVER_DB_PATH: "/app/knotserver.db"
-
KNOT_REPO_SCAN_PATH: "/home/git/repositories"
-
KNOT_SERVER_INTERNAL_LISTEN_ADDR: "localhost:5444"
+
KNOT_SERVER_DB_PATH: /app/knotserver.db
+
KNOT_REPO_SCAN_PATH: /home/git/repositories
+
KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444
volumes:
-
- "./keys:/etc/ssh/keys"
-
- "./repositories:/home/git/repositories"
-
- "./server:/app"
+
- ./keys:/etc/ssh/keys
+
- ./repositories:/home/git/repositories
+
- ./server:/app
ports:
-
- "5555:5555"
-
- "2222:22"
+
- 5555:5555
+
- 2222:22
restart: always
frontend:
-
image: caddy:2-alpine
+
image: caddy:alpine
command: >
caddy
reverse-proxy
···
depends_on:
- knot
ports:
-
- "${KNOT_SERVER_PORT:-443}:443"
-
- "${KNOT_SERVER_PORT:-443}:443/udp"
+
- ${KNOT_SERVER_PORT:-443}:443
+
- ${KNOT_SERVER_PORT:-443}:443/udp
volumes:
- caddy_data:/data
restart: always