first commit
This commit is contained in:
34
docker-compose.postgresql.yml
Normal file
34
docker-compose.postgresql.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: ghcr.io/ericgullickson/motovaultpro:latest
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
# volumes used to keep data persistent
|
||||
volumes:
|
||||
- data:/App/data
|
||||
- keys:/root/.aspnet/DataProtection-Keys
|
||||
# expose port and/or use serving via traefik
|
||||
ports:
|
||||
- 8080:8080
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
postgres:
|
||||
image: postgres:14
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: "motovaultpro"
|
||||
POSTGRES_PASSWORD: "motovaultpass"
|
||||
POSTGRES_DB: "motovaultpro"
|
||||
volumes:
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
- postgres:/var/lib/postgresql/data
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
|
||||
volumes:
|
||||
data:
|
||||
keys:
|
||||
postgres:
|
||||
Reference in New Issue
Block a user