Merge with store
This commit is contained in:
parent
706fe745d3
commit
3ad2766f82
128 changed files with 1185 additions and 0 deletions
83
docker-compose.yml
Normal file
83
docker-compose.yml
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
towers-ingress:
|
||||
init: true
|
||||
depends_on:
|
||||
- store
|
||||
image: schmelczera/towers-ingress
|
||||
networks:
|
||||
- network
|
||||
deploy:
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.2"
|
||||
memory: 32M
|
||||
reservations:
|
||||
cpus: "0.1"
|
||||
memory: 16M
|
||||
placement:
|
||||
constraints:
|
||||
- "node.hostname == node-2"
|
||||
update_config:
|
||||
parallelism: 1
|
||||
failure_action: rollback
|
||||
delay: 10s
|
||||
monitor: 10s
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
window: 30s
|
||||
volumes:
|
||||
- sockets:/var/www/sockets
|
||||
|
||||
towers-store:
|
||||
init: true
|
||||
image: schmelczera/towers-store
|
||||
networks:
|
||||
- network
|
||||
deploy:
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.2"
|
||||
memory: 64M
|
||||
reservations:
|
||||
cpus: "0.05"
|
||||
memory: 32M
|
||||
placement:
|
||||
constraints:
|
||||
- "node.hostname == node-2"
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
window: 30s
|
||||
volumes:
|
||||
- sockets:/home/backend/sockets
|
||||
|
||||
towers-db:
|
||||
init: true
|
||||
image: postgres:12.1-alpine
|
||||
networks:
|
||||
- network
|
||||
deploy:
|
||||
replicas: 1
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.2"
|
||||
memory: 64M
|
||||
reservations:
|
||||
cpus: "0.05"
|
||||
memory: 32M
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
window: 30s
|
||||
volumes:
|
||||
- /shared/towers/db:/var/lib/postgresql/data
|
||||
|
||||
networks:
|
||||
network:
|
||||
driver: overlay
|
||||
|
||||
volumes:
|
||||
sockets:
|
||||
driver: local
|
||||
Loading…
Add table
Add a link
Reference in a new issue