Skip to content

Instantly share code, notes, and snippets.

@changhuixu
Created June 26, 2020 22:21
Show Gist options
  • Save changhuixu/25c1ddc17d6eda23336b27f0a33f7a0a to your computer and use it in GitHub Desktop.
Save changhuixu/25c1ddc17d6eda23336b27f0a33f7a0a to your computer and use it in GitHub Desktop.
nginx + dotnet core
version: '3'
services:
nginx:
image: nginx:alpine
hostname: 'nginx'
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/proxy.conf:/etc/nginx/proxy.conf:ro
- ./nginx/logs/:/var/log/nginx/
ports:
- '80:80'
depends_on:
- api
restart: always
api:
build: ./src
ports:
- '5000'
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment