21 lines
438 B
YAML
21 lines
438 B
YAML
services:
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: nginx-ai
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./static:/etc/nginx/static
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
- ./conf.d:/etc/nginx/conf.d
|
|
- /etc/letsencrypt:/etc/letsencrypt
|
|
- /var/www/html:/var/www/html # 👈 这一行解决 404
|
|
networks:
|
|
- webnet
|
|
|
|
networks:
|
|
webnet:
|
|
external: true
|