Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.0'
- services:
- postgres:
- environment: &postgres_env
- POSTGRES_USER:
- POSTGRES_PASSWORD:
- volumes:
- - ./postgres-data:/var/lib/postgresql/data
- ports:
- - 5432:5432
- backend:
- environment: &backend_env
- <<: *postgres_env
- RAILS_MASTER_KEY:
- RAILS_MAX_THREADS:
- RAILS_ENV: production
- POSTGRES_HOST: postgres
- REDIS_HOST: redis
- REDIS_URL: redis://redis:6379
- POSTGRES_HOST: postgres
- build:
- args:
- REPOSITORY:
- BRANCH: master
- volumes:
- - ./log:/var/www/rubyroid-am/log
- - ./tmp:/var/www/rubyroid-am/tmp
- - public:/var/www/rubyroid-am/public
- command: sh -c "./docker-entrypoint.sh"
- sidekiq:
- environment: &sidekiq_env
- <<: *backend_env
- command: sh -c "sidekiq"
- nginx:
- environment: &nginx_env
- TZ: Europe/Minsk
- LETSENCRYPT: 'false'
- LE_EMAIL:
- LE_FQDN:
- SSL_CERT: le-crt.pem
- SSL_KEY: le-key.pem
- SSL_CHAIN_CERT: le-chain-crt.pem
- image: rubyroid-am/nginx
- build:
- context: ./docker/nginx
- args:
- ENVIRONMENT: staging
- hostname: nginx
- restart: always
- volumes:
- - ./ssl:/etc/nginx/ssl
- - ./tmp:/var/www/rubyroid-am/tmp
- - ./log:/var/www/rubyroid-am/log
- - public:/var/www/rubyroid-am/public
- depends_on:
- - backend
- ports:
- - 80:80
- - 443:443
- volumes:
- public:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement