diff options
author | Matthew Lemon <y@yulqen.org> | 2024-04-10 14:25:03 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-04-10 14:25:03 +0100 |
commit | 1f5402530a5c5011ee4e3d0fc8c94636fbd4ed60 (patch) | |
tree | bda2827c22340691ce6c54dcedbd0b0cc93b9cde /compose.yaml | |
parent | e7e517b822333188ea34f4a4ba83de2253cfe869 (diff) |
Adds docker compose config file and changes application port
Diffstat (limited to '')
-rw-r--r-- | compose.yaml | 21 |
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: |