46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
|
steps:
|
||
|
postgres:
|
||
|
image: postgres
|
||
|
detach: true
|
||
|
environment:
|
||
|
- POSTGRES_PASSWORD=password
|
||
|
|
||
|
cache:
|
||
|
image: mcaptcha/cache:latest
|
||
|
detach: true
|
||
|
|
||
|
mcaptcha:
|
||
|
image: mcaptcha/mcaptcha:latest
|
||
|
detach: true
|
||
|
environment:
|
||
|
- DATABASE_URL=postgres://postgres:password@postgres:5432/postgres # set password at placeholder
|
||
|
- RUST_LOG=debug
|
||
|
- PORT=7000
|
||
|
- MCAPTCHA_server_IP=0.0.0.0
|
||
|
- MCAPTCHA_server_DOMAIN=mcaptcha
|
||
|
- MCAPTCHA_server_COOKIE_SECRET=4d08c163c0b9780e7462893fd8aed5102c2c509f
|
||
|
- MCAPTCHA_captcha_SALT=4d08c163c0b9780e7462893fd8aed5102c2c509f
|
||
|
- MCAPTCHA_redis_URL=redis://cache/
|
||
|
- MCAPTCHA_redis_POOL=4
|
||
|
- MCAPTCHA_allow_demo=true
|
||
|
|
||
|
test_setup:
|
||
|
image: python
|
||
|
environment:
|
||
|
- USERNAME=aaronsw
|
||
|
- PASSWORD=password
|
||
|
- INSTANCE_URL=http://mcaptcha:7000
|
||
|
commands:
|
||
|
- pip install virtualenv && virtualenv venv
|
||
|
- make env
|
||
|
- make test.env
|
||
|
|
||
|
test:
|
||
|
image: rust
|
||
|
environment:
|
||
|
- USERNAME=aaronsw
|
||
|
- PASSWORD=password
|
||
|
- INSTANCE_URL=http://mcaptcha:7000
|
||
|
commands:
|
||
|
- . .env.local && echo $TOKEN $SITEKY
|