mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
feat: 完善docker部署使用
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# 基于官方 PHP 8.0 镜像
|
||||
FROM php:8.0-fpm
|
||||
FROM php:8.2-fpm-bookworm
|
||||
|
||||
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||
RUN sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||
RUN echo "deb http://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list \
|
||||
&& echo "deb http://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list \
|
||||
&& echo "deb http://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
|
||||
15
docker-compose.yaml
Normal file
15
docker-compose.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
ulthon_admin:
|
||||
# image: ulthon/ulthon_admin:v1
|
||||
build:
|
||||
context: . # Dockerfile 所在的目录
|
||||
dockerfile: Dockerfile # Dockerfile 的名称
|
||||
restart: always
|
||||
ports:
|
||||
- "88:80" # HTTP
|
||||
volumes:
|
||||
# - ./:/var/www/html # 开发模式或者直接分发代码可以去掉注释并将下面的目录增加注释
|
||||
- ./runtime:/var/www/html/runtime
|
||||
- ./public/storage:/var/www/html/public/storage
|
||||
- ./public/build:/var/www/html/public/build
|
||||
- ./storage:/var/www/html/storage
|
||||
Reference in New Issue
Block a user