Compare commits
4 Commits
f4b46d2926
...
35c19dcd49
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35c19dcd49 | ||
|
|
20feed2b30 | ||
|
|
c353bb1c78 | ||
|
|
f50667712d |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,4 +1,5 @@
|
||||
traefik/dynamic.yml
|
||||
traefik/static.yml
|
||||
core/dynamic.yml
|
||||
core/static.yml
|
||||
crowdsec/acquis.yaml
|
||||
traefik/acquis.yaml
|
||||
core/acquis.yaml
|
||||
@@ -66,6 +66,40 @@ services:
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
|
||||
portainer:
|
||||
image: portainer/portainer-ce:latest
|
||||
command: -H tcp://tasks.agent:9001 --tlsskipverify
|
||||
volumes:
|
||||
- /home/doc/projects/swarm-data/portainer:/data
|
||||
networks:
|
||||
- frostlabs
|
||||
ports:
|
||||
- 9000:9000
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.task == control
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.swarm.network=frostlabs"
|
||||
- "traefik.http.routers.portainer.rule=Host(`portainer.frostlabs.me`)"
|
||||
- "traefik.http.routers.portainer.entrypoints=websecure"
|
||||
- "traefik.http.routers.portainer.tls=true"
|
||||
- "traefik.http.routers.portainer.tls.certresolver=cloudflare"
|
||||
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
||||
|
||||
agent:
|
||||
image: portainer/agent:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /var/lib/docker/volumes:/var/lib/docker/volumes
|
||||
networks:
|
||||
- frostlabs
|
||||
deploy:
|
||||
mode: global
|
||||
|
||||
networks:
|
||||
frostlabs:
|
||||
external: true
|
||||
@@ -9,12 +9,6 @@ services:
|
||||
- /home/doc/projects/swarm-data/webservers/production/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- /home/doc/projects/swarm-data/webservers/production/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- /home/doc/projects/swarm-data/webfiles/production/taylors-development:/usr/share/nginx/html:ro
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "curl -f http://localhost:80 || exit 1" ]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
|
||||
Reference in New Issue
Block a user