forked from flywindy/excalidraw-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (86 loc) · 2.16 KB
/
docker-compose.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
services:
minio:
image: minio/minio:RELEASE.2020-11-25T22-36-25Z
volumes:
- ./data/minio:/data
expose:
- "9000"
environment:
MINIO_ACCESS_KEY: ${EXCALIDRAW_S3_ACCESS_KEY_ID}
MINIO_SECRET_KEY: ${EXCALIDRAW_S3_SECRET_ACCESS_KEY}
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
excalidraw-json:
image: ${BUILDREPO}/excalidraw-json:latest
depends_on:
- minio
environment:
- EXCALIDRAW_S3_ENDPOINT
- EXCALIDRAW_S3_BUCKET_NAME
- EXCALIDRAW_S3_ACCESS_KEY_ID
- EXCALIDRAW_S3_SECRET_ACCESS_KEY
- EXCALIDRAW_S3_FORCE_PATH_STYLE
- EXCALIDRAW_ALLOWED_ORIGIN
expose:
- "3000"
restart: on-failure
healthcheck:
disable: true
excalidraw-room:
image: ${BUILDREPO}/excalidraw-room:latest
expose:
- "80"
restart: on-failure
healthcheck:
disable: true
excalidraw:
image: ${BUILDREPO}/excalidraw:latest
depends_on:
- excalidraw-room
- excalidraw-json
expose:
- "80"
restart: on-failure
stdin_open: true
healthcheck:
disable: true
environment:
- NODE_ENV=development
- REACT_APP_BACKEND_V1_GET_URL
- REACT_APP_BACKEND_V2_GET_URL
- REACT_APP_BACKEND_V2_POST_URL
- REACT_APP_SOCKET_SERVER_URL
volumes:
- ./excalidraw/:/opt/node_app/app:delegated
- ./excalidraw/package.json:/opt/node_app/package.json
- ./excalidraw/package-lock.json:/opt/node_app/package-lock.json
- excalidraw-notused:/opt/node_app/app/node_modules
nginx:
image: ${BUILDREPO}/nginx:latest
restart: on-failure
ports:
- '${HTTP_PORT}:80'
- '${HTTPS_PORT}:443'
volumes:
- ./data/nginx:/config:Z
environment:
- PUB_SRV_NAME
- ENABLE_LETSENCRYPT
- ENABLE_HTTP_REDIRECT
- DISABLE_HTTPS
- LETSENCRYPT_DOMAIN
- LETSENCRYPT_EMAIL
- LETSENCRYPT_USE_STAGING
- NGINX_RESOLVER
- TZ
volumes:
excalidraw-notused:
networks:
default:
external:
name: excalidraw-net