Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docker Compose Example

Nicolas Duchon edited this pageDec 8, 2024 ·3 revisions

Create docker network, which is going to be used by proxy and proxied servers.

docker network create proxy-net

Example ofdocker-compose.yaml

services:proxy:container_name:proxyimage:nginxproxy/nginx-proxyports:      -80:80      -443:443volumes:      -/var/run/docker.sock:/tmp/docker.sock:roenvironment:      -TRUST_DOWNSTREAM_PROXY=false# true if there is another proxy in front of this onenetworks:       -proxy-net# proxy and all proxied servers have to be on the same networkproxied_server1:image:your_image:latestenvironment:      -VIRTUAL_HOST=your.domain.com      -VIRTUAL_PORT=3000# the same port as in exposeexpose:      -3000# port your app uses to communicatedepends_on:      -proxynetworks:      -proxy-netnetworks:proxy-net:name:proxy-netexternal:true
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp