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