mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-01-22 01:19:18 -05:00
chore: move compose.yml to its own directory
This commit is contained in:
parent
275a43fc18
commit
b1cfeea4c3
18
compose.yml
18
compose.yml
@ -1,18 +0,0 @@
|
|||||||
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;'"
|
|
16
compose/compose.yml
Normal file
16
compose/compose.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: code-containers
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
build: ..
|
||||||
|
env_file: ../.env
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
proxy:
|
||||||
|
build: ../proxy
|
||||||
|
env_file: ../.env
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
network_mode: host
|
@ -3,3 +3,6 @@ FROM openresty/openresty:alpine
|
|||||||
RUN wget -O /usr/local/openresty/lualib/resty/http.lua https://github.com/ledgetech/lua-resty-http/raw/refs/heads/master/lib/resty/http.lua
|
RUN wget -O /usr/local/openresty/lualib/resty/http.lua https://github.com/ledgetech/lua-resty-http/raw/refs/heads/master/lib/resty/http.lua
|
||||||
RUN wget -O /usr/local/openresty/lualib/resty/http_connect.lua https://github.com/ledgetech/lua-resty-http/raw/refs/heads/master/lib/resty/http_connect.lua
|
RUN wget -O /usr/local/openresty/lualib/resty/http_connect.lua https://github.com/ledgetech/lua-resty-http/raw/refs/heads/master/lib/resty/http_connect.lua
|
||||||
RUN wget -O /usr/local/openresty/lualib/resty/http_headers.lua https://github.com/ledgetech/lua-resty-http/raw/refs/heads/master/lib/resty/http_headers.lua
|
RUN wget -O /usr/local/openresty/lualib/resty/http_headers.lua https://github.com/ledgetech/lua-resty-http/raw/refs/heads/master/lib/resty/http_headers.lua
|
||||||
|
|
||||||
|
COPY proxy.conf etc/nginx/conf.d/proxy.conf
|
||||||
|
ENTRYPOINT ["/bin/sh", "-c", "sed -i \"s/{PROXY_DOMAIN}/$PROXY_DOMAIN/\" etc/nginx/conf.d/proxy.conf && nginx -g 'daemon off;'"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user