feat: add go 1.23 1.24 version (#3372)
This commit is contained in:
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
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user