-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (28 loc) · 904 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (28 loc) · 904 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
32
version: '3.1'
# Run proxy server and Total.js Code
services:
code:
container_name: code
image: totalplatform/code
restart: always
volumes:
- codedata:/code/databases
- /var/run/docker.sock:/var/run/docker.sock:ro
- /www/www/:/www/www # Edit development folder
environment:
- UID=code # A custom code ID
- FOLDER_WWW=/www/ # Edit development folder
- FOLDER_NPM=/www/node_modules/ # Edit node_modules folder
# - ORIGIN=https://{0}.abc.eu.totaljs.cloud # A custom origin due to URL restrictions
- LETSENCRYPT_HOST=code.youdomain.com
- VIRTUAL_HOST=code.youdomain.com
- VIRTUAL_PORT=8000
- VIRTUAL_MAX_UPLOAD=100
- HTTPS_METHOD=redirect
- DISABLE_ACCESS_LOGS=1
volumes:
codedata:
networks:
default:
name: proxy
external: true