excalidraw-storage-backend/docker-compose.yml

26 lines
891 B
YAML
Raw Normal View History

version: "3.8"
services:
excalidraw-storage-backend:
build: .
2023-02-09 17:21:25 +01:00
tty: true
stdin_open: true
ports:
- "8080:8080"
2021-09-08 15:31:02 +02:00
environment:
2023-12-21 15:41:46 +01:00
STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
postgres:
image: postgres:12-alpine
# Pass config parameters to the postgres server.
# Find more information below when you need to generate the ssl-relevant file your self
# command: -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: ${POSTGRES_DB:-excalidraw-dev}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
POSTGRES_USER: ${POSTGRES_USER}
volumes:
- postgres_data:/var/lib/postgresql/data/pgdata
volumes:
postgres_data: