Добавить roles/portainer/templates/docker-compose.yml.j2
This commit is contained in:
parent
e0d3388329
commit
805090c934
24
roles/portainer/templates/docker-compose.yml.j2
Normal file
24
roles/portainer/templates/docker-compose.yml.j2
Normal file
@ -0,0 +1,24 @@
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:{{ portainer_version }}
|
||||
container_name: portainer
|
||||
restart: {{ portainer_restart_policy }}
|
||||
ports:
|
||||
- "{{ portainer_https_port }}:9443"
|
||||
{% if portainer_http_port is defined and portainer_http_port %}
|
||||
- "{{ portainer_http_port }}:8000"
|
||||
{% endif %}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- {{ portainer_data_dir }}:/data
|
||||
- {{ portainer_certs_dir }}:/certs
|
||||
- {{ portainer_logs_dir }}:/logs
|
||||
environment:
|
||||
- TZ={{ timezone }}
|
||||
networks:
|
||||
- portainer_net
|
||||
|
||||
networks:
|
||||
portainer_net:
|
||||
driver: bridge
|
||||
name: portainer_net
|
||||
Loading…
Reference in New Issue
Block a user