Copy everything

This commit is contained in:
schmelczerandras 2020-08-12 10:52:09 +02:00 committed by schmelczerandras
commit 8526739939
68 changed files with 1075 additions and 0 deletions

34
docker-compose.yml Normal file
View file

@ -0,0 +1,34 @@
version: '3.8'
services:
photos:
init: true
image: schmelczera/photos
networks:
- network
ports:
- target: 80
protocol: tcp
mode: ingress
deploy:
replicas: 2
resources:
limits:
cpus: '0.5'
memory: 32M
reservations:
cpus: '0.2'
memory: 32M
placement:
max_replicas_per_node: 1
update_config:
parallelism: 1
failure_action: rollback
delay: 10s
monitor: 10s
restart_policy:
condition: on-failure
window: 30s
networks:
network: