feat: 增加 Go 运行环境 (#1717)

This commit is contained in:
zhengkunwang
2024-07-10 22:19:54 +08:00
committed by GitHub
parent fda5b4c77d
commit c24a629cbb
16 changed files with 107 additions and 10 deletions
+1
View File
@@ -0,0 +1 @@
additionalProperties:
+20
View File
@@ -0,0 +1,20 @@
services:
golang:
image: golang:${GO_VERSION}
container_name: ${CONTAINER_NAME}
working_dir: /app
volumes:
- ${CODE_DIR}:/app
- ./run.sh:/run.sh
- ./.env:/.env
- ./mod:/go/pkg/mod
command: bash /run.sh
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${GO_APP_PORT}
restart: on-failure:5
networks:
1panel-network:
external: true
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
source /.env
$EXEC_SCRIPT