refactor docker swarm to use just home without workers for now

add caching at nginx level for portainer and gitea
This commit is contained in:
2018-04-07 08:11:23 -04:00
parent 3ed65eefe9
commit 83ec6809d6
45 changed files with 438 additions and 192 deletions

View File

@@ -1,6 +1,6 @@
---
# DOCKER_HOST=192.168.2.41:2376 docker-compose up -d
# DOCKER_HOST=dkhost:2376 docker stack deploy -c docker-compose.yml dkui
# DOCKER_HOST=dkmanager:2376 docker stack deploy -c docker-compose.yml dkui
version: '3.4'
services:
@@ -10,11 +10,14 @@ services:
image: "portainer/portainer"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - /var/run/docker.sock:/var/run/docker.sock
- /opt/shared/portainer/data:/data
ports:
# - "80:80"
- "9000:9000"
command:
- "-H"
- "tcp://dkmanager:2376"
deploy:
mode: replicated
@@ -22,7 +25,7 @@ services:
restart_policy:
condition: any
delay: 5s
max_attempts: 10
max_attempts: 1
update_config:
parallelism: 1
delay: 2s
@@ -31,8 +34,8 @@ services:
net.xai-corp.dkui.description: portainer ui for docker host and swarm management
resources:
limits:
cpus: '0.2'
memory: 16M
# cpus: '0.2'
memory: 32M
logging:
@@ -42,13 +45,16 @@ services:
fluentd-async-connect: 'true'
tag: dkui
networks:
- prod_ui
networks:
default:
prod_ui:
external:
name: ingress
ingress:
name: prod_ui
prod_db:
external:
name: ingress
prod:
name: prod_db
prod_cache:
external:
name: prod
name: prod_cache