add deployment

This commit is contained in:
2022-08-14 17:27:44 +02:00
parent 2f69fc5422
commit 280a9786ec
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
version: '3.7'
services:
{{.service}}:
image: {{.image}}
ports:
- {{.ports}}
env_file: ".env"
restart: always
depends_on:
- db
db:
image: postgres:13.5
restart: always
env_file: ".env"
volumes:
- ./data/postgres:/var/lib/postgresql/data