Skip to content

Commit

Permalink
add gitignore, portainer service and correct net
Browse files Browse the repository at this point in the history
  • Loading branch information
sosensible committed Mar 2, 2021
1 parent f41b2bf commit 86acc29
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/certs/*.key
/certs/*.crt
/hide/**
33 changes: 31 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
version: "3"
services:
portainer:
image: portainer/portainer-ce:2.1.1
container_name: portainer
depends_on:
- traefik
command: -H unix:///var/run/docker.sock
ports:
- "9000:9000"
- "8000:8000"
networks:
- devops
labels:
- traefik.enable=true
- traefik.http.routers.portainer.entrypoints=http,https
- traefik.http.routers.portainer.rule=Host(`portainer.docker.localhost`)
- traefik.http.routers.portainer.tls=true
- traefik.http.services.portainer.loadbalancer.server.port=9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer-data:/data

traefik:
restart: always
image: traefik:2.4.5
ports:
- "80:80"
- "443:443"
networks:
- devops
- inbound
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/certs:ro
Expand All @@ -19,5 +43,10 @@ services:
- traefik.http.routers.mydevproxy.service=api@internal

networks:
default:
name: inbound
devops:
name: devops
inbound:
name: inbound

volumes:
portainer-data:

0 comments on commit 86acc29

Please sign in to comment.