mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-22 02:29:40 +08:00
feat: add go 1.23 1.24 version (#3372)
This commit is contained in:
parent
7a6ceb0c49
commit
bebe9c6035
1
go/1.23/data.yml
Normal file
1
go/1.23/data.yml
Normal file
@ -0,0 +1 @@
|
||||
additionalProperties:
|
||||
21
go/1.23/docker-compose.yml
Normal file
21
go/1.23/docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
6
go/1.23/run.sh
Normal file
6
go/1.23/run.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /.env
|
||||
eval $EXEC_SCRIPT
|
||||
|
||||
|
||||
1
go/1.24/data.yml
Normal file
1
go/1.24/data.yml
Normal file
@ -0,0 +1 @@
|
||||
additionalProperties:
|
||||
21
go/1.24/docker-compose.yml
Normal file
21
go/1.24/docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
6
go/1.24/run.sh
Normal file
6
go/1.24/run.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /.env
|
||||
eval $EXEC_SCRIPT
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user