app:
  image: webdizz/baseimage-java8
  ports:
    - 22
  expose:
    - 8080
  links:
    - redis
  volumes:
    - boosenger/build/libs/boosenger-1.0-SNAPSHOT.jar:/boosenger-1.0-SNAPSHOT.jar
    - application.yml:/application.yml
  command: java -jar /boosenger-1.0-SNAPSHOT.jar --spring.active.profiles=lc --spring.social.twitter.app-id=FUdxv0M8fVNnuSOIZi3wwoJdg --spring.social.twitter.app-secret=EtmgdGdg2HEA3TxkmykBW8kQJrKjMtrNT06hKstzEwXoO4wEtM

redis:
  image: dockerfile/redis
  expose:
    - 6379

nginx:
  image: webdizz/nginx
  ports:
    - 80:80
    - 443:443
    - 22
  links:
    - app
  volumes:
    - env/nginx/nginx.conf:/usr/local/nginx/conf/nginx.conf
    - env/nginx/includes:/usr/local/nginx/conf/includes
    - env/nginx/sites-enabled:/usr/local/nginx/conf/sites-enabled
    - sandbox/src/main/resources/static:/usr/local/nginx/html
  environment:
    - ROOT_PASS=123456
app:
  image: webdizz/baseimage-java8
  ports:
    - 22
  expose:
    - 8080
  links:
    - redis
  volumes:
    - boosenger/build/libs/boosenger-1.0-SNAPSHOT.jar:/boosenger-1.0-SNAPSHOT.jar
    - application.yml:/application.yml
  command: java -jar /boosenger-1.0-SNAPSHOT.jar --spring.active.profiles=lc --spring.social.twitter.app-id=FUdxv0M8fVNnuSOIZi3wwoJdg --spring.social.twitter.app-secret=EtmgdGdg2HEA3TxkmykBW8kQJrKjMtrNT06hKstzEwXoO4wEtM

redis:
  image: dockerfile/redis
  expose:
    - 6379
  ports:
    - 46379:6379

nginx:
  image: webdizz/nginx
  ports:
    - 80:80
    - 443:443
    - 22
  links:
    - app
  volumes:
    - env/nginx/nginx.conf:/usr/local/nginx/conf/nginx.conf
    - env/nginx/includes:/usr/local/nginx/conf/includes
    - env/nginx/sites-enabled:/usr/local/nginx/conf/sites-enabled
    - sandbox/src/main/resources/static:/usr/local/nginx/html
  environment:
    - ROOT_PASS=123456
Add external port for Redis container
Add external port for Redis container
