2025-01-08 13:13:09 -05:00
|
|
|
name: code-containers
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2025-01-09 13:23:27 -05:00
|
|
|
proxy:
|
2025-01-10 06:54:47 -05:00
|
|
|
build: proxy
|
2025-01-09 13:23:27 -05:00
|
|
|
env_file: .env
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
volumes:
|
2025-01-10 06:54:47 -05:00
|
|
|
- ./proxy/proxy.conf.template:/etc/nginx/conf.d/proxy.conf.template
|
2025-01-09 13:23:27 -05:00
|
|
|
network_mode: host
|
2025-01-10 05:53:03 -05:00
|
|
|
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;'"
|