feat: docker支持
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user