From 857d1575439304457f650538736af02439662dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=B7=9D?= Date: Mon, 11 May 2026 16:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0dockercompose=E6=A8=A1?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 +++- backend/docker-compose.yaml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 backend/docker-compose.yaml diff --git a/.gitignore b/.gitignore index 62c8935..6a80527 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -.idea/ \ No newline at end of file +.idea/ +.env +.DS_Store \ No newline at end of file diff --git a/backend/docker-compose.yaml b/backend/docker-compose.yaml new file mode 100644 index 0000000..4773113 --- /dev/null +++ b/backend/docker-compose.yaml @@ -0,0 +1,16 @@ +services: + __PROJECT_NAME__: + image: __PROJECT_IMAGE_ADDR__ + container_name: __PROJECT_NAME__ + restart: always + env_file: + - .env + volumes: + - /etc/localtime:/etc/localtime:ro + - /opt/mingjiang/logs/__PROJECT_NAME__:/usr/local/mingjiang/logs + networks: + - mj_network +networks: + mj_network: + name: mingjiang_network + external: true \ No newline at end of file