53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
excalidraw:
|
|
stdin_open: true
|
|
build:
|
|
context: .
|
|
target: production
|
|
container_name: excalidraw
|
|
ports:
|
|
- "5010:80"
|
|
restart: always
|
|
healthcheck:
|
|
disable: true
|
|
environment:
|
|
- NODE_ENV=production
|
|
|
|
excalidraw-storage-backend:
|
|
build:
|
|
context: https://github.com/kitsteam/excalidraw-storage-backend.git#main
|
|
target: production
|
|
ports:
|
|
- "5011:8080"
|
|
restart: always
|
|
environment:
|
|
STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
|
|
|
|
excalidraw-room:
|
|
image: excalidraw/excalidraw-room
|
|
restart: always
|
|
ports:
|
|
- "5012:80"
|
|
|
|
postgres:
|
|
image: postgres:15-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-prod}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data/pgdata
|
|
#ports:
|
|
# - "5432:5432"
|
|
|
|
volumes:
|
|
notused:
|
|
postgres_data:
|