Skip to content

Instantly share code, notes, and snippets.

View manjiki's full-sized avatar
🌴
wandering

effie mouzeli manjiki

🌴
wandering
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!--
logging props
logging.config=/tmp/logback-spring.xml
logging.file=/tmp/spring.log
logging.maxfilesizemb=30
logging.totalsizemb=500
logging.historydays=30
-->
# /etc/systemd/system/chuck-api.service
[Unit]
Description=chuck-api
After=syslog.target
[Service]
EnvironmentFile=-/etc/default/chuck-api
WorkingDirectory=/opt/chuck/chuck-api/current
User=chuck
# /etc/rsyslog.d/chuck-api.conf
if $programname == 'chuck-api' then /dev/null
& stop
# /etc/default/chuck-api
APP_ROOT=/opt/chuck/chuck-api
BINARY="chuck-api.jar"
PORT="23000"
USER="chuck"
JAVA_OPTS="-Xmx128m"
CONFIG_SERVER="-Dspring.cloud.config.uri=http://config-chuck-api.chuck.int:10000"
LOGGING="-Dlogging.config=/etc/logback-spring.xml -Dlogging.path=/opt/chuck/chuck-api/logs"
@manjiki
manjiki / pillars_docker_init.sls
Created March 16, 2017 13:57
Docker pillar example for dockerng
mycompany-docker-registries:
http://registry.mycompany.com:5000/v2/:
email: admin@mycompany.com
username: someuser
password: somepass
reauth: True