mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Create docker-compose.yaml
This commit is contained in:
parent
49c36dd267
commit
47e8bed26b
1 changed files with 18 additions and 0 deletions
18
etc/docker/swarm/docker-compose.yaml
Normal file
18
etc/docker/swarm/docker-compose.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
#########################################################################
|
||||
# Copyright (C) 2020 Sebastian Francisco Colomar Bauza #
|
||||
# SPDX-License-Identifier: GPL-2.0-only #
|
||||
#########################################################################
|
||||
services:
|
||||
web:
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == worker
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: any
|
||||
image: secobau/spring-petclinic
|
||||
ports:
|
||||
- 80:8080
|
||||
version: '3.8'
|
||||
#########################################################################
|
Loading…
Reference in a new issue