Skip to content

Commit

Permalink
[CI][#] docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuze committed May 23, 2024
1 parent 2464a69 commit bf103c1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ COPY src .
COPY run.sh .
COPY supervisord.conf .

EXPOSE 9001
ENTRYPOINT ["./run.sh"]
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit bf103c1

Please sign in to comment.