forked from b310-digital/excalidraw
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
excalidraw:
stdin_open: true
build:
context: .
target: development
args:
- NODE_ENV=development
ports:
- "3000:3000"
healthcheck:
disable: true
environment:
- NODE_ENV=development
volumes:
- node_modules:/opt/node_app/node_modules
- ./:/opt/node_app/
excalidraw-storage-backend:
build:
context: https://github.com/kitsteam/excalidraw-storage-backend.git#main
target: production
# When testing locally, you can also checkout the repository and start the backend manually:
# context: ../kits/excalidraw-storage-backend
# target: development
# volumes:
# - ../kits/excalidraw-storage-backend/:/home/node/app
stdin_open: true
ports:
- "8080:8080"
environment:
STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-excalidraw-dev}
STORAGE_TTL: 2592000000
excalidraw-room:
build:
context: https://github.com/kitsteam/excalidraw-room.git#master
ports:
- "5001:8090"
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-dev}
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:
postgres_data:
node_modules: