# This is the docker-compose.yml for the deployment environment.
# Instead of building the image, it's pulled from Docker Hub.
# The current directory is not mounted.
# The database container mounts its data files from the host.  A better way to do this might be to use a data container.
db:
  image: postgres
  environment:
    POSTGRES_USER: postgres-username
    POSTGRES_PASSWORD: postgres-password
  volumes:
    - /srv/docker/postgresql/data:/var/lib/postgresql/data
web:
  image: username/maint_web:latest
  environment:
    - SECRET_KEY_BASE=secret-key-here
    - DEVISE_PEPPER=another-secret-key-here
    - RAILS_SERVE_STATIC_FILES=yes
    - COMMITTEE=Whatever
    - REQ_URL=http://www.whatever.org/1/files/public/maint/requests/maint_%s.pdf
    - MAIL_SENDER=maint@whatever.org
    - SERVER_PRODUCTION=www.whatever.org
    - SERVER_STAGING=www.whatever.org
    - SERVER_DEVELOPMENT=www.whatever.org
    - POSTGRES_USER=postgres-username
    - POSTGRES_PASSWORD=postgres-password
    - DB_SERVICE_HOST=db-1
    - DB_SERVICE_PORT=5432
    - POSTMARK_API_KEY=api-key-here
  #volumes:
  #  - /var/www/assets:/myapp/public/assets
  #command: bash -c "bundle exec rake assets:precompile && bundle exec rails s Puma -p 3100 -b '0.0.0.0'"
  command: ./init.sh
  ports:
    - "80:3000"
  links:
    - db

Update the documentation to explain how to deploy using Docker Cloud.
Update the documentation to explain how to deploy using Docker Cloud.
