* feat: db users: admin -> windmill_admin, app -> windmill_user * clean up * backend tests * backend tests * backend tests * lock roles in first migration * check if user is superuser too * add init-db * add init-db
42 lines
943 B
YAML
42 lines
943 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
|
|
db:
|
|
image: postgres:14
|
|
restart: always
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
# - ./init-db.sql:/docker-entrypoint-initdb.d/create_tables.sql
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: windmill
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
windmill:
|
|
image: ghcr.io/windmill-labs/windmill:main
|
|
privileged: true
|
|
restart: unless-stopped
|
|
ports:
|
|
- 80:8000
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:${DB_PASSWORD}@db/windmill?sslmode=disable
|
|
- BASE_URL=http://localhost
|
|
- BASE_INTERNAL_URL=http://localhost:8000
|
|
- RUST_LOG=info
|
|
- NUM_WORKERS=3
|
|
- RUST_BACKTRACE=1
|
|
- DISABLE_NUSER=false
|
|
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
volumes:
|
|
|
|
db_data: null
|