From b19321bab542de35564127dc77781af44252bcb9 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 2 Jan 2025 16:23:43 -0800 Subject: create a base template :) and use it for a new service --- template/docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 template/docker-compose.yml (limited to 'template/docker-compose.yml') diff --git a/template/docker-compose.yml b/template/docker-compose.yml new file mode 100644 index 0000000..655159d --- /dev/null +++ b/template/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3" + +services: + api: + restart: always + image: {{ service_repo }} + healthcheck: + test: ["CMD", "wget", "--spider", "http://localhost:8080/api/health"] + interval: 5s + timeout: 10s + retries: 5 + env_file: .env + volumes: + - ./db:/app/db + - ./templates:/app/templates + - ./static:/app/static + ports: + - "127.0.0.1:{{ service_port }}:8080" -- cgit v1.2.3-70-g09d2