22 lines
493 B
YAML
Executable file
22 lines
493 B
YAML
Executable file
version: '3'
|
|
|
|
services:
|
|
portainer:
|
|
container_name: portainer
|
|
image: portainer/portainer-ce
|
|
command: -H unix:///var/run/docker.sock
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- portainer_data:/data
|
|
networks:
|
|
- srv
|
|
restart: unless-stopped
|
|
expose:
|
|
- 9000
|
|
environment:
|
|
- VIRTUAL_PORT=9000
|
|
- VIRTUAL_HOST=${HOST_PORTAINER}.${DOMAIN}
|
|
- LETSENCRYPT_HOST=${HOST_PORTAINER}.${DOMAIN}
|
|
|
|
volumes:
|
|
portainer_data:
|