forked from ddev/ddev-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Portainer port on the host (ddev#99)
- Loading branch information
1 parent
ed58a73
commit 10257bc
Showing
2 changed files
with
45 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 20 additions & 18 deletions
38
docker-compose-services/portainer/docker-compose.portainer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
--- | ||
version: '3.6' | ||
services: | ||
portainer: | ||
image: portainer/portainer:latest | ||
restart: always | ||
container_name: ddev-${DDEV_SITENAME}-portainer | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- portainer_data:/data | ||
external_links: | ||
- "ddev-router:${DDEV_HOSTNAME}" | ||
cap_add: | ||
- SYS_ADMIN | ||
ports: | ||
- '9000:9000' | ||
- '8000:8000' | ||
portainer: | ||
image: portainer/portainer:latest | ||
expose: | ||
- "9000" | ||
environment: | ||
- VIRTUAL_HOST=$DDEV_HOSTNAME | ||
- HTTP_EXPOSE=9001:9000 | ||
- HTTPS_EXPOSE=8001:9000 | ||
restart: "no" | ||
container_name: ddev-${DDEV_SITENAME}-portainer | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- portainer_data:/data | ||
external_links: | ||
- "ddev-router:${DDEV_HOSTNAME}" | ||
cap_add: | ||
- SYS_ADMIN | ||
volumes: | ||
portainer_data: | ||
|
||
networks: | ||
default: | ||
external: | ||
name: ddev_default | ||
|