- 
                Notifications
    You must be signed in to change notification settings 
- Fork 69
Build development environment with docker
        Sergi Alonso edited this page Jan 13, 2025 
        ·
        13 revisions
      
    git clone git@github.com:coopdevs/timeoverflow.git
I used this guide for Manjaro Linux, look for other guides for your OS
And for docker-compose (Manjaro Linux)
pamac install docker-compose
Add: app path to you local repository and RAILS_ENV=development, like:
version: '3'
services:
  app:
    build: .
    volumes:
      - ./entrypoint.sh:/app/entrypoint.sh
      - ./db/seeds.rb:/app/db/seeds.rb
      - ./storage:/app/storage
      - .:/app:/yourpath/dev/timeoverflow/
    environment:
      - DATABASE_URL=postgres://postgres:timeoverflow@db/timeoverflow
      - SECRET_KEY_BASE=d2a645fb46fbd3d4380fb22230ddea4062570eb00853ca5dfe97f8bb1cbff1ad6891c573a4b4b06beb2d0baf59afc9e00794314490a644fc5808ad6cbc3a6379
      - FORCE_SSL=false
      - RAILS_LOG_LEVEL=debug
      - REDIS_URL=redis://redis:6379/0
      - ADMINS=admin@timeoverflow.org
      - RAILS_ENV=development
docker compose up
Sometimes is needed with build (full docker rebuild)
docker compose up --build
1234test
1234test