Skip to content
Snippets Groups Projects
Select Git revision
  • d26d8fc366bbbfeda934379eef56728b491be5d4
  • eip-develop default
  • ovalt/user-restore
  • develop
  • 0valt/1865/filters
  • 0valt/1885/flag-history
  • 0valt/keyboard
  • art/complaints
  • 0valt/1875/audit-logs
  • 0valt/1876/thread-rename
  • dependabot/npm_and_yarn/npm_and_yarn-a48ea45f8c
  • cellio/714-rename-thread
  • 0valt/sidebar
  • dependabot/bundler/bundler-5a9ea26a4b
  • 0valt/audits
  • 0valt/1859/tag-drafts
  • 0valt/1253/imports-filters
  • 0valt/1857/markdown-in-titles
  • 0valt/seed
  • 0valt/tags
  • 0valt/z-index
  • 0valt/docs
  • v0.12.3
  • v0.12.2
  • v0.12.1
  • v0.12.0
  • v0.11.0
  • v0.10.0
  • v0.9.0
  • v0.8.0
  • v0.7.0
  • v0.6.1
  • v0.6.0
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v1.0
37 results

docker-compose.yml

Blame
  • user avatar
    Matthew Brent authored
    Makes use of the automatic .env variable auto-loading feature for docker-compose where values stored in a .env file in the same directory as the docker-compose.yml file will be automatically loaded to allow easier customization of docker-compose files. This will make it easier for devs to customize their local environment without keeping track of changes that shouldn't be tracked in git.
    683b16af
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    docker-compose.yml 870 B
    version: "3.8"
    services:
      db:
        build:
          context: "."
          dockerfile: docker/Dockerfile.db
        volumes:  
          - ./docker/mysql:/var/lib/mysql
        env_file:
          - ${ENV_FILE_LOCATION}
        command: mysqld --default-authentication-plugin=mysql_native_password --skip-mysqlx
    
      uwsgi:
        restart: always
        build:
          context: "."
          dockerfile: docker/Dockerfile
        depends_on:
          - db
        environment:
          - COMMUNITY_NAME=${COMMUNITY_NAME}
          - RAILS_ENV=${RAILS_ENV}
          - CONFIRMABLE_ALLOWED_ACCESS_DAYS=${CONFIRMABLE_ALLOWED_ACCESS_DAYS}
        env_file:
          - ${ENV_FILE_LOCATION}
        ports:
          - "${LOCAL_DEV_PORT}:3000"
        volumes:
          - .:/code
          - ./static:/var/www/static
          - ./images:/var/www/images
        links:
          - redis
          - db
    
      redis:
        restart: always
        image: redis:latest
        depends_on:
          - db