瀏覽代碼

chore: build image in docker compose

this makes it possible to run development build using Docker.
Shishkevich D. 1 天之前
父節點
當前提交
13baf77893
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      docker-compose.yml

+ 6 - 4
docker-compose.yml

@@ -1,8 +1,10 @@
 services:
-  3x-ui:
-    image: ghcr.io/mhsanaei/3x-ui:latest
-    container_name: 3x-ui
-    hostname: yourhostname
+  3xui:
+    build:
+      context: .
+      dockerfile: ./Dockerfile
+    container_name: 3xui_app
+    # hostname: yourhostname <- optional
     volumes:
       - $PWD/db/:/etc/x-ui/
       - $PWD/cert/:/root/cert/