Skip to content

Commit

Permalink
Merge pull request #762 from RobertFloor/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- authored Feb 20, 2022
2 parents 58f099b + e7cb61c commit be7c960
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ services:
build:
context: "."
dockerfile: docker/Dockerfile.db
volumes:
volumes:
- ./docker/mysql:/var/lib/mysql
env_file:
- ${ENV_FILE_LOCATION}
command: mysqld --default-authentication-plugin=mysql_native_password --skip-mysqlx
cap_add:
- SYS_NICE

uwsgi:
restart: always
Expand All @@ -21,6 +23,7 @@ services:
- COMMUNITY_NAME=${COMMUNITY_NAME}
- RAILS_ENV=${RAILS_ENV}
- CONFIRMABLE_ALLOWED_ACCESS_DAYS=${CONFIRMABLE_ALLOWED_ACCESS_DAYS}
- LOCAL_DEV_PORT=${LOCAL_DEV_PORT}
env_file:
- ${ENV_FILE_LOCATION}
ports:
Expand Down
1 change: 1 addition & 0 deletions docker/create_admin_and_community.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 1. Create the community
community_name = ENV['COMMUNITY_NAME'] || 'Dinosaur Community'
Community.create(name: community_name, host: "localhost:#{ENV['LOCAL_DEV_PORT']}")
Rails.cache.clear

# 2. Create the admin user, ensure doesn't require confirmation
username = ENV['COMMUNITY_ADMIN_USERNAME'] || 'admin'
Expand Down

0 comments on commit be7c960

Please sign in to comment.