mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
feat: 增加 Go 运行环境 (#1717)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
additionalProperties:
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /.env
|
||||
$EXEC_SCRIPT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user