Running locally with Docker
How to run locally with Docker.
Create the project directory
mkdir myapp
cd myappCreate docker-compose.yaml
version: "3"
services:
db:
image: postgres-pg-partman:latest
build:
context: ./postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
ports:
- "5432:5432"
redis:
image: redis:6.2.6
volumes:
- redis_data:/data
ports:
- "6379:6379"
authgear:
# Remember to replace the latest tag with the exact version you would like to use!
image: quay.io/theauthgear/authgear-server:latest
volumes:
- ./authgear.yaml:/app/authgear.yaml
- ./authgear.secrets.yaml:/app/authgear.secrets.yaml
environment:
DEV_MODE: "true"
LOG_LEVEL: "debug"
ports:
- "3000:3000"
volumes:
redis_data:
driver: local
db_data:
driver: localCreate authgear.yaml and authgear.secrets.yaml
Edit authgear.secrets.yaml
Start PostgreSQL and Redis
Run database migration
Get it running
Verify everything is working
Last updated
Was this helpful?