Select Git revision
docker-compose.yml
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.
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