Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (62 sloc) 2.27 KB
# Copyright (c) 2018 Surevine Ltd.
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use, copy,
# modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
version: '3.3'
# This compose file runs the service in a Docker container, and is
# supposed to represent a more production-like setup.
volumes:
backend-data:
driver: local
db-data-production:
driver: local
services:
db:
volumes:
- db-data-production:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: '3773Ir5oYOPuIwiJ3yylytG5kvRhOUYQafAVkTNBE'
MYSQL_PASSWORD: 'WVn1X9JAZixu7bOCfITFSQyfru4wtRdqztf9PHE3s'
cache:
backend:
image: surevine/spring-rest-example:latest
volumes:
- backend-data:/var/lib/data
environment:
DB_VENDOR: 'mariadb'
DB_ADDR: 'db'
DB_NAME: 'backend'
DB_USER: 'backend'
DB_PASSWORD: 'WVn1X9JAZixu7bOCfITFSQyfru4wtRdqztf9PHE3s'
DB_DRIVER: 'org.mariadb.jdbc.Driver'
SESSION_HOST: 'cache'
SESSION_PASSWORD:
SESSION_PORT: 6379
MEDIA_LOCATION: 'file:/var/lib/data/'
# AWS_ACCESS_KEY_ID: 'xxxx'
# AWS_SECRET_ACCESS_KEY: 'xxxx'
# CLOUDWATCH_METRICS_ENABLED: 'true'
# CLOUDWATCH_METRICS_NAMESPACE: 'production-spring-rest-example'
# MEDIA_LOCATION: 's3://my-bucket'
ports:
- '8080:8080'
depends_on:
- db
- cache