2021-01-18 12:13:26 +02:00
|
|
|
# This compose file can be used in development to run both the database and app
|
|
|
|
# within Docker.
|
2020-12-28 13:48:47 +02:00
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2021-01-18 12:13:26 +02:00
|
|
|
app:
|
2020-12-28 13:48:47 +02:00
|
|
|
build:
|
|
|
|
context: .
|
2021-01-18 12:13:26 +02:00
|
|
|
dockerfile: Dockerfile.server
|
|
|
|
ports:
|
|
|
|
- "22300:22300"
|
|
|
|
environment:
|
|
|
|
- DB_CLIENT=pg
|
|
|
|
- POSTGRES_PASSWORD=joplin
|
|
|
|
- POSTGRES_DATABASE=joplin
|
|
|
|
- POSTGRES_USER=joplin
|
|
|
|
- POSTGRES_PORT=5432
|
|
|
|
- POSTGRES_HOST=localhost
|
|
|
|
db:
|
|
|
|
image: postgres:13.1
|
2020-12-28 13:48:47 +02:00
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=joplin
|
|
|
|
- POSTGRES_USER=joplin
|
2021-01-18 12:13:26 +02:00
|
|
|
- POSTGRES_DB=joplin
|