Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,12 @@ echo 'vm.max_map_count=262144' | sudo tee -a /etc/sysctl.d/60-vm-max_map_count.c
cd /opt/formshare_docker_compose_20240213
sudo docker-compose pull

# Edit the docker-compose.yml file to set the MySQL root and FormShare admin passwords
sudo nano /opt/formshare_docker_compose_20240213/docker-compose.yml
# Press Alt+Shit+3 to show the line numbers in Nano

Edit line 10: Change the root password from "my_secure_password" to your password
Edit line 67: Change the root password from "my_secure_password" to the same password of line 10
Edit line 68: Change the admin user name (optional)
Edit line 69: Change the admin email address
Edit line 70: Change the admin user password from "my_secure_password" to your password
Edit line 75: Change the IP address for the IP address of the machine running the Docker service
# Set environment variables. Make sure to change the following:
# MYSQL_PASSWORD
# FORMSHARE_ADMIN_EMAIL
# FORMSHARE_ADMIN_PASSWORD
sudo wget -O .env https://raw.githubusercontent.com/qlands/FormShare/stable-2.33.0/docker_compose/env.example
sudo nano .env

# Save the file with Ctlr+o Enter . Exit with Ctrl+x

Expand Down
10 changes: 5 additions & 5 deletions docker_compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
cap_add:
- SYS_NICE
environment:
MYSQL_ROOT_PASSWORD: my_secure_password
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- /opt/formshare/mysql:/var/lib/mysql
- /opt/formshare/mysql-files:/var/lib/mysql-files
Expand Down Expand Up @@ -65,10 +65,10 @@ services:
environment:
MYSQL_HOST_NAME: 172.28.1.5
MYSQL_USER_NAME: root
MYSQL_USER_PASSWORD: my_secure_password
FORMSHARE_ADMIN_USER: admin
FORMSHARE_ADMIN_EMAIL: admin@myserver.com
FORMSHARE_ADMIN_PASSWORD: my_secure_password
MYSQL_USER_PASSWORD: ${MYSQL_PASSWORD}
FORMSHARE_ADMIN_USER: ${FORMSHARE_ADMIN_USER}
FORMSHARE_ADMIN_EMAIL: ${FORMSHARE_ADMIN_EMAIL}
FORMSHARE_ADMIN_PASSWORD: ${FORMSHARE_ADMIN_PASSWORD}
ELASTIC_SEARCH_HOST: 172.28.1.2
ELASTIC_SEARCH_PORT: 9200
FORMSHARE_HOST: 172.28.1.4
Expand Down
11 changes: 11 additions & 0 deletions docker_compose/env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Root password for MySQL. Must be changed.
MYSQL_PASSWORD=my_secure_password

# Email address of FormShare admin user. Must be changed.
FORMSHARE_ADMIN_EMAIL=admin@myserver.com

# Password of FormShare admin user. Must be changed.
FORMSHARE_ADMIN_PASSWORD=my_secure_password

# Username of FormShare admin user. Optional to change.
FORMSHARE_ADMIN_USER=admin