aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yaml
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-10 14:25:03 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-10 14:25:03 +0100
commit1f5402530a5c5011ee4e3d0fc8c94636fbd4ed60 (patch)
treebda2827c22340691ce6c54dcedbd0b0cc93b9cde /compose.yaml
parente7e517b822333188ea34f4a4ba83de2253cfe869 (diff)
Adds docker compose config file and changes application port
Diffstat (limited to '')
-rw-r--r--compose.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml
new file mode 100644
index 0000000..91c06dd
--- /dev/null
+++ b/compose.yaml
@@ -0,0 +1,21 @@
+services:
+ db:
+ image: postgres:16-alpine
+ environment:
+ - POSTGRES_PASSWORD=secret
+ volumes:
+ - dbasik_data:/var/lib/postgresql/data
+ app:
+ build:
+ context: .
+ volumes:
+ - .:/app
+ restart: "unless-stopped"
+ command: >
+ sh -c "go run ./cmd/dbasik-api"
+ ports:
+ - 5000:5000
+ depends_on:
+ - db
+volumes:
+ dbasik_data: