reverse-proxy nginx
This commit is contained in:
parent
db79c561c7
commit
1c522160b8
3 changed files with 76 additions and 2 deletions
|
|
@ -1,14 +1,31 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
volumes:
|
||||
- ./conf/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./logs/nginx:/etc/nginx/logs
|
||||
- ./cert:/etc/nginx/cert
|
||||
networks:
|
||||
- net
|
||||
ports:
|
||||
- 80:80
|
||||
|
||||
frontend:
|
||||
container_name: frontend
|
||||
build: .
|
||||
command: npm start
|
||||
ports:
|
||||
- "4200:4200"
|
||||
# ports:
|
||||
# - "4200:4200"
|
||||
volumes:
|
||||
- ./src:/data/frontend
|
||||
- ./node_modules:/data/frontend/node_modules
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
networks:
|
||||
- net
|
||||
|
||||
networks:
|
||||
net:
|
||||
driver: bridge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue