-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 920 Bytes
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
# DATA_ROOT environment variable based on contents of .env
services:
server: # back-end nodejs
build: ./server
restart: always
volumes:
- ${DATA_ROOT:?err}:/data
- type: bind
source: ${LOG_FILE:?err}
target: /logs
environment:
- READ_ONLY=${READ_ONLY:?err}
- NON_LOCAL_READ_ONLY=${NON_LOCAL_READ_ONLY:?err}
- ENABLE_HIDDEN_FILES=${ENABLE_HIDDEN_FILES:?err}
- LOG_FILE=/logs
- HIDE_DISK_SIZE=${HIDE_DISK_SIZE:?err}
- ACCESS_TOKEN=${ACCESS_TOKEN}
# uid of the owner of the DATA_ROOT folder so the api can
# pretent to be the user making the changes to the file
user: "${DATA_ROOT_UID:?err}:${DATA_ROOT_UID:?err}"
client: # front-end nginx
build: ./client
restart: always
# nginx static files
volumes:
- ${DATA_ROOT:?err}:/data
ports:
- "${WEBSITE_PORT:?err}:80"
depends_on:
- server