summaryrefslogtreecommitdiff
path: root/roles/something/templates/docker-compose.yml.j2
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:58:21 -0800
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 16:58:21 -0800
commit8e42029d13cc6f6f9dac22cc5b7b122f17d791d5 (patch)
tree00b69b7dbfd17ef17119d1c42347a94522a249e2 /roles/something/templates/docker-compose.yml.j2
parent6488ee867c08faf2e7fe53c39febe91c04afc6b1 (diff)
downloadoldinfra-8e42029d13cc6f6f9dac22cc5b7b122f17d791d5.tar.gz
oldinfra-8e42029d13cc6f6f9dac22cc5b7b122f17d791d5.zip
create a something service
Diffstat (limited to 'roles/something/templates/docker-compose.yml.j2')
-rw-r--r--roles/something/templates/docker-compose.yml.j216
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/something/templates/docker-compose.yml.j2 b/roles/something/templates/docker-compose.yml.j2
new file mode 100644
index 0000000..6704897
--- /dev/null
+++ b/roles/something/templates/docker-compose.yml.j2
@@ -0,0 +1,16 @@
+version: "3"
+
+services:
+ api:
+ restart: always
+ image: git.simponic.xyz/simponic/something
+ healthcheck:
+ test: ["CMD", "wget", "--spider", "http://localhost:8080/api/health"]
+ interval: 5s
+ timeout: 10s
+ retries: 5
+ env_file: .env
+ volumes:
+ - ./db:/app/db
+ ports:
+ - "127.0.0.1:6363:8080"