Go to file
Paul J Stevens 026795feab update volumes 2023-08-13 08:47:50 +00:00
bin Revert "hardening wordpress (#28)" 2023-08-04 09:12:39 +02:00
deploy/staging update volumes 2023-08-13 08:47:50 +00:00
nginx loosen nginx timeout 2022-10-18 22:40:01 +02:00
.env align database 2023-04-29 12:23:06 +02:00
.gitignore use sample env file 2023-05-21 07:49:34 +02:00
.gitlab-ci.yml ci: only build on main 2022-06-05 15:08:02 +02:00
.woodpecker.yml add secret 2023-04-02 16:27:36 +02:00
Dockerfile Revert "hardening wordpress (#28)" 2023-08-04 09:12:39 +02:00
Makefile make explicit how to run image.sh 2023-05-21 07:51:56 +02:00
README.md readme: distinguish local/deploy 2023-07-21 14:29:57 +00:00
custom.ini ci: debug 2023-04-02 14:46:14 +02:00
docker-compose.yml Revert "hardening wordpress (#28)" 2023-08-04 09:12:39 +02:00
image.sh push 2023-04-29 13:37:22 +02:00

README.md

BIJ1 CiviCRM

Requirements

local usage

run

make build-dev
make start
sleep 2  # give the containers time to spin up
make reset-db
make install
# http://localhost/wp-admin/admin.php?page=CiviCRM
# civi
# password123

podman

One can use Podman Compose over Docker Compose using: make COMPOSE="podman-compose"

Logs

logs may be found at: /var/lib/docker/volumes/civicrm-bij1_civi-data/_data/wp-content/uploads/civicrm/ConfigAndLog/

Database

docker-compose exec db bash -c "mysql -h localhost -u civi -p'password123' civi_crm"

Troubleshooting

Can't connect to MySQL server on 'db'

If you just spinned up the container cluster, wait a few seconds before running make install.

remote

publish image

(handled in CI)

deploy

Due to Docker Swarm deployment doesn't work with Podman symlinking.

On the server, after configuring a deploy/staging/env from deploy/staging/env.sample, run:

make build
docker swarm init
docker stack deploy -c ./deploy/staging/stack.yml civi
docker stack ps civi
docker stack rm civi