Add CD
This commit is contained in:
parent
fb044bc122
commit
ba050930ba
7 changed files with 169 additions and 16 deletions
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
timeline:
|
||||
init: true
|
||||
image: schmelczera/timeline
|
||||
depends_on:
|
||||
- frontend
|
||||
networks:
|
||||
- network
|
||||
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
|
||||
ports:
|
||||
- "80"
|
||||
|
||||
networks:
|
||||
network:
|
||||
Loading…
Add table
Add a link
Reference in a new issue