Commit 706ad573 authored by 簡碩辰's avatar 簡碩辰

Update docker-compose.yml

parent 10912ef1
portainer: version: '2'
image: portainer/portainer services:
ports: portainer:
- "9000:9000" image: portainer/portainer
volumes: ports:
- "/var/run/docker.sock:/var/run/docker.sock" - "9000:9000"
- "portainer_data:/data" volumes:
restart: always - "/var/run/docker.sock:/var/run/docker.sock"
container_name: portainer - "portainer_data:/data"
\ No newline at end of file networks:
net:
ipv4_address: 192.168.0.2
restart: always
container_name: portainer
volumes:
portainer_data:
networks:
net:
driver: bridge
# enable_ipv6: false
ipam:
driver: default
config:
- subnet: 192.168.0.0/24
gateway: 192.168.0.254
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment