Docker configuration for the Yakforms project. This is a Drupal 7 / PHP 7.4 application that lets you create simple forms, then collect and analyze the responses.
It is not actively maintained anymore, we'll keep the stack frozen until a better solution is found.
- https://framacolibri.org/t/yakforms-migration-sur-drupal-9/17286
- https://framacolibri.org/t/updating-an-outdated-technology-stack-and-feature-timeline/17166
A working Docker installation is mandatory.
Please make sure to copy & rename the example.env file to .env.
cp example.env .env
You can replace the values if needed to match you server & environment.
Build & run all the containers for this project.
docker-compose up
(add -d if you want to run in the background and silence the logs)
To access the main application please use the following link.
The first time you access the application, you will be redirected to the installation page (see below for the installation instructions).
Copy & rename the docker-compose.override.yml.prod file to docker-compose.override.yml.
cp docker-compose.override.yml.prod docker-compose.override.yml
You can replace the values if needed, but the default ones should work for production.
Don't forget to also copy & rename the example.env file to .env, and change the values for the production environment.
Build & run all the containers for this project:
docker-compose up -d
Use a reverse proxy configuration to map the url to port 8787
.
When you first access the application, you will be redirected to the installation page.
- Choose PostgreSQL as the database type
- Add connection parameters (report values from the .env file, below are the default development values)
- Database name: yakforms
- Username: user
- Password: password
- Host: yakforms-postgres
- Port: 5432
Use the following path: /admin/config/regional/language
Use the following path: /admin/modules
- "yakforms-feature"
- "Yakforms"
- "Yakforms Public Results" & "Yakforms Share Results"
Use the following path: /admin/appearance
Use the following path: /admin/config/system/yakforms
Use the following path: /admin/modules
- "SMTP Authentication Support"
- If needed also "Active Directory Integration / LDAP Integration - NTLM & Kerberos Login"
Everything in /themes
, /modules
, /libraries
& /files
is managed by composer and will be updated on the next docker compose up
.
Files in the /fix
& /views
folders are backed into the docker image, they will either be updated on the next docker compose build
/ docker compose pull
, or stored in the database during the first setup and persist in the application database volume (should be updated manually).