dlinux-dashboard/compose.yml

19 lines
490 B
YAML

name: code-containers
services:
server:
build: .
ports:
- 3000:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
proxy:
build: proxy
env_file: .env
ports:
- 80:80
volumes:
- ./proxy/proxy.conf.template:/etc/nginx/conf.d/proxy.conf.template
network_mode: host
command: /bin/sh -c "sed 's/{PROXY_DOMAIN}/$PROXY_DOMAIN/' /etc/nginx/conf.d/proxy.conf.template > /etc/nginx/conf.d/proxy.conf && nginx -g 'daemon off;'"