feat: docker支持

This commit is contained in:
mazxd
2025-04-05 17:40:50 +08:00
parent af8f0f9dfe
commit 077ea6f5d5
5 changed files with 151 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: xinyue-app
restart: unless-stopped
working_dir: /var/www/html
volumes:
- ./:/var/www/html
networks:
- xinyue-network
nginx:
image: nginx:alpine
container_name: xinyue-nginx
restart: unless-stopped
ports:
- "8009:80"
volumes:
- ./:/var/www/html
- ./docker/nginx:/etc/nginx/conf.d
networks:
- xinyue-network
networks:
xinyue-network:
driver: bridge
volumes:
dbdata: