You need the docker container to run a specific yaml file
version: '2.4'
networks:
privatenetwork:
name: privatenetwork
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.111.0/24
gateway: 192.168.111.1
services:
portainer:
read_only: true
image: portainer/portainer-ce:latest
healthcheck:
disable: true
container_name: portainer
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- privatenetwork
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /mnt/AppPool/Portainer/data:/data:rw
ports:
- "2001:9443"
Note that the "- /mnt/AppPool/Portainer/data:/data:rw" line will need to be specific to your use case
And
" - subnet: 192.168.111.0/24
gateway: 192.168.111.1" will also need to be an unused subnet on your network
Thank you for this, When placing the path in the compose_file for container configuration. I dont think its reading ti? its a .yml file not a .yaml dont think that matters but im not sure. I would pull logs but it wont let me download any the most i get is this from the app events
Exec lifecycle hook ([/bin/bash -c if [ "${COMPOSE_FILE}" ]; then counter=0; while ! docker info > /dev/null 2>&1 && [[ ${counter} -lt 10 ]]; do echo "docker not running yet. Waiting..." >> /proc/1/fd/1; sleep 5; counter=$((counter+1)); done docker-compose -f "${COMPOSE_FILE}" up -d && echo "Loading COMPOSE_FILE at location ${COMPOSE_FILE}" >> /proc/1/fd/1; else echo "COMPOSE_FILE not set, not auto-loading compose-file" >> /proc/1/fd/1; fi ]) for Container "portainer-docker-compose" in Pod "portainer-docker-compose-0_ix-portainer(5b4448c9-ae41-42cc-8a58-d71a843365a0)" failed - error: command '/bin/bash -c if [ "${COMPOSE_FILE}" ]; then counter=0; while ! docker info > /dev/null 2>&1 && [[ ${counter} -lt 10 ]]; do echo "docker not running yet. Waiting..." >> /proc/1/fd/1; sleep 5; counter=$((counter+1)); done docker-compose -f "${COMPOSE_FILE}" up -d && echo "Loading COMPOSE_FILE at location ${COMPOSE_FILE}" >> /proc/1/fd/1; else echo "COMPOSE_FILE not set, not auto-loading compose-file" >> /proc/1/fd/1; fi ' exited with 137: , message: ""