Create docker-compose.yaml

This commit is contained in:
secobau 2020-06-26 13:59:26 +02:00 committed by GitHub
parent 49c36dd267
commit 47e8bed26b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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'
#########################################################################