26 lines
674 B
YAML
Executable File
26 lines
674 B
YAML
Executable File
version: '3'
|
|
|
|
services:
|
|
portainer:
|
|
container_name: portainer
|
|
hostname: DockerServer-04
|
|
image: portainer/portainer-ce
|
|
ports:
|
|
- 9000:9000/tcp
|
|
restart: always
|
|
volumes:
|
|
- /mnt/data/docker/appdata/portainer/data:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
portainer-agent:
|
|
container_name: portainer-agent
|
|
hostname: portainer-agent
|
|
image: portainer/agent:latest
|
|
ports:
|
|
- 9001:9001/tcp
|
|
restart: always
|
|
volumes:
|
|
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /etc/localtime:/etc/localtime:ro |