From bf103c104ed4fce5d6c3bacf6842a7998e401d33 Mon Sep 17 00:00:00 2001 From: ZhongFuze Date: Fri, 24 May 2024 05:03:27 +0800 Subject: [PATCH] [CI][#] docker-compose.yml --- Dockerfile | 1 + docker-compose.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index cde0f75..ddaaa7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,5 @@ COPY src . COPY run.sh . COPY supervisord.conf . +EXPOSE 9001 ENTRYPOINT ["./run.sh"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2a7145e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +version: "3.9" +services: + server: + image: ghcr.io/zhongfuze/id_allocation:main + container_name: id_allocation + volumes: + - ./shared_data:/app/data + - ./app/config:/app/config + - ./app/log_tmp:/tmp + - ./app/log:/app/log + network_mode: "host" + nginx: + image: nginx + container_name: nginx + volumes: + - ~/app/nginx/nginx.conf:/etc/nginx/nginx.conf + - ~/app/nginx/conf.d:/etc/nginx/conf.d + - ~/app/nginx/logs:/var/log/nginx + - ~/app/nginx/ssl:/etc/ssl + network_mode: "host" \ No newline at end of file