Skip to content

Instantly share code, notes, and snippets.

@arthurd2
Created September 20, 2023 16:15
Show Gist options
  • Save arthurd2/430b5ef1b5083eb52a9ec7308e7e92aa to your computer and use it in GitHub Desktop.
Save arthurd2/430b5ef1b5083eb52a9ec7308e7e92aa to your computer and use it in GitHub Desktop.
version: "3.5"
services:
trino:
image: trinodb/trino:426
depends_on:
- postgresql
- mongodb
ports:
- 8080:8080
configs:
- source: ceos-trinio-mongodb
target: /etc/trino/catalog/mongodb.properties
- source: ceos-trinio-postgresql
target: /etc/trino/catalog/postgresql.properties
postgresql:
image: postgres:15-alpine
environment:
POSTGRES_DB: xxx
POSTGRES_USER: xxx
POSTGRES_PASSWORD: xxx
volumes:
- pgsql:/var/lib/postgresql/data
mongodb:
image: mongo:6
volumes:
- mongodb:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: xxx
MONGO_INITDB_ROOT_PASSWORD: xxx
volumes:
pgsql:
mongodb:
configs:
ceos-trinio-postgresql:
external: true
ceos-trinio-mongodb:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment