modify(portainer-ce): add env-file

This commit is contained in:
cnphpbb
2024-03-27 06:18:29 +08:00
parent 371577ac9b
commit 4ac15d4862
41 changed files with 7 additions and 4 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
+2
View File
@@ -0,0 +1,2 @@
IMAGE_TAG=portainer/portainer-ce:2.19.4
AGENT_TAG=portainer/agent:2.19.4
+2 -2
View File
@@ -2,7 +2,7 @@ version: '3.2'
services: services:
agent: agent:
image: portainer/agent:2.19.4 image: ${AGENT_TAG}
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- /data/docker/volumes:/var/lib/docker/volumes - /data/docker/volumes:/var/lib/docker/volumes
@@ -14,7 +14,7 @@ services:
constraints: [node.platform.os == linux] constraints: [node.platform.os == linux]
portainer: portainer:
image: portainer/portainer-ce:2.19.4 image: ${IMAGE_TAG}
command: -H tcp://tasks.agent:9001 --tlsskipverify command: -H tcp://tasks.agent:9001 --tlsskipverify
ports: ports:
- "9000:9000" - "9000:9000"
Regular → Executable
+3 -2
View File
@@ -1,13 +1,14 @@
# docker compose -p portainer-ce -f ./portainer-ce/portainer-ce.yaml up -d # docker compose -p portainer-ce --env-file ./portainer-ce/env.yml -f ./portainer-ce/portainer-ce.yaml up -d
version: '3.8' version: '3.8'
services: services:
portainer: portainer:
image: portainer/portainer-ce:2.19.4 image: ${IMAGETAG}
restart: always restart: always
ports: ports:
- "9000:9000" - "9000:9000"
- "9443:9443" - "9443:9443"
- "8000:8000"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- data:/data - data:/data
Regular → Executable
View File
Regular → Executable
View File
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File