dawarich/docker-compose.yml

82 lines
1.9 KiB
YAML
Raw Normal View History

version: '3'
networks:
dawarich:
services:
dawarich_redis:
image: redis:7.0-alpine
command: redis-server
networks:
- dawarich
volumes:
- shared_data:/var/shared/redis
dawarich_db:
image: postgres:14.2-alpine
container_name: dawarich_db
volumes:
- db_data:/var/lib/postgresql/data
- shared_data:/var/shared
networks:
- dawarich
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
dawarich_app:
image: freikin/dawarich:latest
container_name: dawarich_app
volumes:
- gem_cache:/usr/local/bundle/gems
2024-05-23 16:17:19 -04:00
- tmp:/var/app/tmp
networks:
- dawarich
ports:
- 3000:3000
stdin_open: true
tty: true
entrypoint: dev-entrypoint.sh
2022-04-07 12:45:38 -04:00
command: ['bin/dev']
2024-05-18 06:13:29 -04:00
restart: on-failure
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
MIN_MINUTES_SPENT_IN_CITY: 60
APPLICATION_HOST: localhost
2024-05-25 14:50:25 -04:00
TIME_ZONE: UTC
depends_on:
- dawarich_db
- dawarich_redis
dawarich_sidekiq:
image: freikin/dawarich:latest
container_name: dawarich_sidekiq
volumes:
- gem_cache:/usr/local/bundle/gems
networks:
- dawarich
stdin_open: true
tty: true
entrypoint: dev-entrypoint.sh
command: ['sidekiq']
restart: on-failure
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
APPLICATION_HOST: localhost
BACKGROUND_PROCESSING_CONCURRENCY: 10
depends_on:
- dawarich_db
- dawarich_redis
- dawarich_app
volumes:
db_data:
gem_cache:
shared_data:
2024-05-23 16:17:19 -04:00
tmp: