Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- networks:
- dawarich:
- services:
- dawarich_redis:
- image: redis:7.0-alpine
- command: redis-server
- networks:
- - dawarich
- volumes:
- - /home/pi/docker/dawarich/shared_data:/var/shared/redis
- dawarich_db:
- image: postgres:14.2-alpine
- container_name: dawarich_db
- volumes:
- - /home/pi/docker/dawarich/db/db_data:/var/lib/postgresql/data
- - /home/pi/docker/dawarich/db/shared_data:/var/shared
- networks:
- - dawarich
- environment:
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: password
- dawarich_app:
- image: freikin/dawarich:0.1.0
- container_name: dawarich_app
- volumes:
- - /home/pi/docker/dawarich/gem_cache:/usr/local/bundle/gems
- networks:
- - dawarich
- ports:
- - 3030:3000
- stdin_open: true
- tty: true
- entrypoint: dev-entrypoint.sh
- command: ['bin/dev']
- environment:
- RAILS_ENV: development
- REDIS_URL: redis://dawarich_redis:6379/0
- DATABASE_HOST: dawarich_db
- DATABASE_USERNAME: postgres
- DATABASE_PASSWORD: password
- DATABASE_NAME: dawarich_development
- MINIMUM_POINTS_IN_CITY: 5
- depends_on:
- - dawarich_db
- - dawarich_redis
- dawarich_sidekiq:
- image: freikin/dawarich:0.1.0
- container_name: dawarich_sidekiq
- volumes:
- - /home/pi/docker/dawarich/gem_cache:/usr/local/bundle/gems
- networks:
- - dawarich
- stdin_open: true
- tty: true
- entrypoint: dev-entrypoint.sh
- command: ['sidekiq']
- environment:
- RAILS_ENV: development
- REDIS_URL: redis://dawarich_redis:6379/0
- DATABASE_HOST: dawarich_db
- DATABASE_USERNAME: postgres
- DATABASE_PASSWORD: password
- DATABASE_NAME: dawarich_development
- depends_on:
- - dawarich_db
- - dawarich_redis
- - dawarich_app
Add Comment
Please, Sign In to add comment