mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 23:35:50 +00:00
Create docker-compose.yaml
This commit is contained in:
parent
ef132b951e
commit
218c84a580
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