Skip to content

Commit

Permalink
增加portainer docker 服务
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chao committed Aug 5, 2024
1 parent 8234078 commit 0f8c85b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -641,4 +641,4 @@ MINIO_CONSOLE_PORT=9101
MINIO_BRIDGE_PORT=9102

# portainer
PORTAINER_PORT=9443
PORTAINER_PORT=27017
34 changes: 17 additions & 17 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ volumes:
magistrala-invitations-db-volume:
magistrala-ui-db-volume:
magistrala-minio-data-volume:
# magistrala-portainer-data-volume:
magistrala-portainer-data-volume:

services:
spicedb:
Expand Down Expand Up @@ -955,19 +955,19 @@ services:
networks:
- magistrala-base-net

# portainer:
# image: ${MG_DOCKER_IMAGE_ALIYUN_PREFIX}/${MG_DOCKER_IMAGE_USERNAME_PREFIX}/portainer-ce:latest
# container_name: magistrala-portainer
# logging:
# driver: "json-file"
# options:
# max-size: "10m"
# max-file: "3"
# restart: on-failure
# ports:
# - ${PORTAINER_PORT}:${PORTAINER_PORT}
# networks:
# - magistrala-base-net
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# - magistrala-portainer-data-volume:/data
portainer:
image: ${MG_DOCKER_IMAGE_ALIYUN_PREFIX}/${MG_DOCKER_IMAGE_USERNAME_PREFIX}/portainer-ce:latest
container_name: magistrala-portainer
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
restart: on-failure
ports:
- ${PORTAINER_PORT}:9000
networks:
- magistrala-base-net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- magistrala-portainer-data-volume:/data

0 comments on commit 0f8c85b

Please sign in to comment.