Skip to content

Commit

Permalink
add cli backend for lcoal dev + try fix elastic connexion
Browse files Browse the repository at this point in the history
  • Loading branch information
bailletced committed Jan 21, 2025
1 parent d46e280 commit a65af9a
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ services:
- 9200:9200
volumes:
- ./openchurch_elasticsearch_data:/usr/share/elasticsearch/data

backend:
extra_hosts: *default-extra_hosts
container_name: openchurch_backend
Expand Down Expand Up @@ -69,8 +70,34 @@ services:
HOST_API: https://api.openchurch.local/api
HOST_ADMIN: admin.openchurch.local
ELASTIC_PASSWORD: admin
ELASTICSEARCH_IRI: https://elastic:admin@elasticsearch:9200
ELASTICSEARCH_IRI: http://elastic:admin@elasticsearch:9200
SYNCHRO_SECRET_KEY: "secret"
cli:
extra_hosts: *default-extra_hosts
container_name: openchurch_backend_cli
command: /usr/sbin/cron -f -l 15
build:
context: .
dockerfile: ./docker/php/Dockerfile
environment:
SERVER_NAME: :80
APP_ENV: prod
DATABASE_URL: "mysql://openchurch:openchurch@db:3306/openchurch?serverVersion=8.0&charset=utf8mb4"
HOST_API: api-preprod-openchurch.hozana.org
APP_SECRET: JK6nAUJQhFXMwiBvqHE_3UX8RyCeFEec
JWT_TOKEN_TTL: 120
JWT_PASSPHRASE: b361bf0a703911722b2a1704cc002cab
ELASTICSEARCH_IRI: http://elastic:admin@elasticsearch:9200
ELASTIC_PASSWORD: admin
SYNCHRO_SECRET_KEY: secret
REDIS_URL: redis://redis:6379
depends_on:
- db
- redis
- elasticsearch
user: root
networks:
- app-network
python:
container_name: openchurch_python
build:
Expand Down

0 comments on commit a65af9a

Please sign in to comment.