-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (31 loc) · 893 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (31 loc) · 893 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
33
34
35
# Run proxy server and Total.js Code
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- '80:80'
restart: always
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx:/etc/nginx/conf.d
code:
container_name: code
image: totalplatform/code
volumes:
- codedata:/code/databases
- /var/run/docker.sock:/var/run/docker.sock:ro
- /your/local/path/apps/:/www/www # Edit development folder
environment:
- UID=code
- ORIGIN=http://{0}.localhost
- FOLDER_WWW=/your/local/path/apps # Edit development folder
- FOLDER_NPM=/your/local/path/node_modules # Edit node_modules folder
- VIRTUAL_MAX_UPLOAD=100
- VIRTUAL_HOST=code.localhost
- VIRTUAL_PORT=8000
- DISABLE_ACCESS_LOGS=1
volumes:
codedata:
networks:
default:
name: proxy