aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yaml
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-04-10 19:33:21 +0100
committerMatthew Lemon <y@yulqen.org>2024-04-10 19:33:21 +0100
commite69391d4f309f6268440632585bbddf3a2a5bd60 (patch)
tree9e0faa4a92f06dbd8c228ba80752ea5f4d89dd17 /compose.yaml
parentd36c48b3251b9da483f06318ecaa14b9a4fa7118 (diff)
First introduction of migrations using golang-migrate
Diffstat (limited to '')
-rw-r--r--compose.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/compose.yaml b/compose.yaml
index 4206716..d1544a0 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -1,12 +1,15 @@
services:
db:
- image: postgres:16-alpine
+ build:
+ context: .
+ dockerfile: Dockerfile.postgres
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=secret
volumes:
- dbasik_data:/var/lib/postgresql/data
+ - ./migrations:/dbasik
app:
build:
context: .