Created
October 28, 2021 12:27
-
-
Save bahlo/64a9f484c2efd43553176dd62aee3c5d to your computer and use it in GitHub Desktop.
Run Axiom locally with Postgres and Minio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.2' | |
volumes: | |
postgres_data: | |
minio_data: | |
services: | |
axiom-db: | |
image: axiomhq/axiom-db:1.13.0 | |
environment: | |
AXIOM_POSTGRES_URL: "postgres://axiom:axiom@postgres?sslmode=disable&connect_timeout=5" | |
AXIOM_STORAGE: "minio://minio:9000/axiomdb/data?key=axiom&secret=axiomoixa&secure=false" | |
depends_on: | |
- minio | |
- postgres | |
restart: unless-stopped | |
axiom-core: | |
image: axiomhq/axiom-core:1.13.0 | |
environment: | |
AXIOM_POSTGRES_URL: "postgres://axiom:axiom@postgres?sslmode=disable&connect_timeout=5" | |
AXIOM_DB_URL: "http://axiom-db" | |
ports: | |
- 8080:80 | |
depends_on: | |
- axiom-db | |
restart: unless-stopped | |
postgres: | |
image: postgres:13-alpine | |
environment: | |
POSTGRES_USER: axiom | |
POSTGRES_PASSWORD: axiom | |
volumes: | |
- postgres_data:/var/lib/postgresql/data | |
minio: | |
image: minio/minio:RELEASE.2021-10-08T23-58-24Z | |
environment: | |
MINIO_ACCESS_KEY: axiom | |
MINIO_SECRET_KEY: axiomoixa | |
MINIO_BROWSER: "on" | |
entrypoint: sh | |
command: -c 'mkdir -p /data/axiomdb && minio server /data' | |
volumes: | |
- minio_data:/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment