补充 docker-compose.yml
This commit is contained in:
parent
12552281bf
commit
e8788e3320
|
|
@ -0,0 +1,23 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
nginx-ai:
|
||||
image: nginx:alpine
|
||||
container_name: nginx-ai
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./conf.d:/etc/nginx/conf.d:ro
|
||||
- /etc/nginx/certs:/etc/nginx/certs:ro
|
||||
- /var/www/html:/var/www/html
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
networks:
|
||||
- nginx-network
|
||||
|
||||
networks:
|
||||
nginx-network:
|
||||
driver: bridge
|
||||
Loading…
Reference in New Issue