소스 검색

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/