Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

git clone git@github.com:ICIJ/prophecies.git
cd prophecies/make installmake migratemake createsuperuserDEBUG=on
DATABASE_URL=
CACHE_URL=dummycache://
STATIC_URL=/static/
SOCIAL_AUTH_PROVIDER_KEY=
SOCIAL_AUTH_PROVIDER_SECRET=
SOCIAL_AUTH_PROVIDER_HOSTNAME=http://localhost:3001
SOCIAL_AUTH_PROVIDER_USERNAME_FIELD=uid
SOCIAL_AUTH_PROVIDER_GROUPS_FIELD=groups_by_applications.prophecies
SOCIAL_AUTH_PROVIDER_STAFF_GROUP=icijstaffversion: '3'
volumes:
shared_static: {}
postgresql_data: {}
services:
nginx:
image: nginx:latest
ports:
- "9999:9999"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- shared_static:/static/:ro
depends_on:
- web
web:
image: icij/prophecies:0.5.9
environment:
- ALLOWED_HOSTS=0.0.0.0,localhost,web
- CSRF_TRUSTED_ORIGINS=http://localhost:9999
- DATABASE_URL=postgres://postgres:postgres@db/prophecies
- DEBUG=false
- DJANGO_SETTINGS_MODULE=prophecies.settings.production
- DJANGO_ADMIN_LOGIN=true
- PROPHECIES_APP_LOGIN_URL=/admin/login/?next=/
- PORT=8008
- WAIT_HOSTS_TIMEOUT=60
- WAIT_HOSTS=db:5432
volumes:
- shared_static:/code/prophecies/run/static
depends_on:
- db
- migration
- collectstatic
expose:
- "8008"
migration:
image: icij/prophecies:0.5.9
command: sh -c '/usr/bin/wait && poetry run python manage.py migrate --noinput'
environment:
- WAIT_HOSTS=db:5432
- WAIT_HOSTS_TIMEOUT=60
- DATABASE_URL=postgres://postgres:postgres@db/prophecies
depends_on:
- db
collectstatic:
image: icij/prophecies:0.5.9
command: poetry run python manage.py collectstatic --noinput
volumes:
- shared_static:/code/prophecies/run/static
db:
image: postgres:16
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: prophecies
command: postgres -c shared_preload_libraries=pg_stat_statements -c 'pg_stat_statements.track=all'
volumes:
- postgresql_data:/var/lib/postgresql/dataupstream web {
ip_hash;
server web:8008;
}
server {
location /static/ {
autoindex on;
alias /static/;
}
location / {
proxy_pass http://web/;
}
listen 9999;
server_name localhost;
}
docker compose up -ddocker compose exec -it web make createsuperuserdocker compose logs -fdocker compose stopdocker compose down --volumesmake test-back$ tree prophecies/apps/frontend/tests/unit/mocks/handlers
β
βββ action-aggregate.js
βββ actions.js
βββ choice-groups.js
βββ settings.js
βββ task-record-media.js
βββ task-record-reviews.js
βββ task-records.js
βββ tasks.js
βββ task-user-choice-statistics .js
βββ task-user-statistics.js
βββ tips.js
βββ user-notification.js
βββ users.jsmake major
make minor
make patchgit push && git push --tagsdocker compose up