Restructered repository and added dockerfiles.
This commit is contained in:
parent
6f626ea686
commit
25dde6a119
8 changed files with 86 additions and 22 deletions
34
docker-compose/base.yaml
Normal file
34
docker-compose/base.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
version: '3.0'
|
||||
|
||||
services:
|
||||
portainer:
|
||||
container_name: portainer
|
||||
image: portainer/portainer-ce:alpine
|
||||
network_mode: bridge
|
||||
ports:
|
||||
- "9000:9000/tcp"
|
||||
volumes:
|
||||
- /etc/localtime/:/etc/localtime:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ~/docker/portainer:/data
|
||||
restart: always
|
||||
|
||||
watchtower:
|
||||
container_name: watchtower
|
||||
image: containrrr/watchtower:latest
|
||||
network_mode: bridge
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_FROM = info@{domain}
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_TO=user@{domain}
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.{domain}
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=465
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=info
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD={passwd}
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2
|
||||
WATCHTOWER_NOTIFICATIONS=email
|
||||
WATCHTOWER_SCHEDULE=0 0 0 * * 6
|
||||
WATCHTOWER_CLEANUP=true
|
||||
restart: unless-stopped
|
45
docker-compose/traefik.yaml
Executable file
45
docker-compose/traefik.yaml
Executable file
|
@ -0,0 +1,45 @@
|
|||
version: '3.0'
|
||||
|
||||
services:
|
||||
traefik:
|
||||
container_name: traefik
|
||||
image: traefik:latest
|
||||
command:
|
||||
#- --api.insecure=true
|
||||
#- --api.dashboard=true
|
||||
- --providers.docker=true
|
||||
- --providers.docker.exposedByDefault=false
|
||||
- --providers.docker.network=proxy
|
||||
|
||||
- --entryPoints.web.address=:80
|
||||
- --entrypoints.web.http.redirections.entrypoint.to=websecure
|
||||
- --entrypoints.web.http.redirections.entrypoint.scheme=https
|
||||
- --entryPoints.websecure.address=:443
|
||||
- --entryPoints.webfederation.address=:8448
|
||||
|
||||
- --certificatesresolvers.staging.acme.email={email}
|
||||
- --certificatesresolvers.staging.acme.storage=/ssl-certs/acme.json
|
||||
- --certificatesresolvers.staging.acme.caServer=https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
- --certificatesresolvers.staging.acme.httpChallenge.entryPoint=web
|
||||
|
||||
- --certificatesresolvers.production.acme.email={email}
|
||||
- --certificatesresolvers.production.acme.storage=/ssl-certs/acme.json
|
||||
- --certificatesresolvers.production.acme.caServer=https://acme-v02.api.letsencrypt.org/directory
|
||||
- --certificatesresolvers.production.acme.httpChallenge.entryPoint=web
|
||||
networks:
|
||||
proxy:
|
||||
ipv4_address: 172.21.0.80
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
#- "8080:8080"
|
||||
- "8448:8448"
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /opt/traefik/ssl-certs:/ssl-certs
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
Loading…
Add table
Add a link
Reference in a new issue