add docker setup

This commit is contained in:
Johannes Heuel
2022-06-26 15:25:39 +02:00
parent 9449d992c0
commit 9b8e38eca6
3 changed files with 30 additions and 10 deletions

View File

@@ -4,23 +4,30 @@ services:
db:
image: postgres
#restart: always
restart: always
volumes:
- ./data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
- POSTGRES_DB=diesel_demo
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
adminer:
image: adminer
#restart: always
restart: always
ports:
- 3000:8080
# photos:
# build: .
# environment:
# - DATABASE_URL="postgres://user:password@db/diesel_demo"
# - DATABASE_URL=postgres://user:password@db/diesel_demo
# restart: always
# ports:
# - 8081:8081
# depends_on:
# - db
# links:
# - db