Skip to content

Instantly share code, notes, and snippets.

@changhuixu
Created June 27, 2020 14:17
Show Gist options
  • Save changhuixu/94aa4ed1d3610a8a14abce59b061384a to your computer and use it in GitHub Desktop.
Save changhuixu/94aa4ed1d3610a8a14abce59b061384a to your computer and use it in GitHub Desktop.
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/ssl/localhost.crt:/etc/ssl/certs/localhost.crt:ro
- ./nginx/ssl/localhost.key:/etc/ssl/certs/localhost.key:ro
- ./nginx/logs/:/var/log/nginx/
ports:
- '80:80'
- '443:443'
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