* WIP Switch to Postgres * feat(postgres): more work on porting to postgres, now compiles * feat(docker-compose): Changed the docker-compose.yml file to use postgres. * Update docker, documentation, gh actions... * Remove bson dependency * Remove bson import * feat: move mock filehost to trait rather than cargo feature * feat(postgres): transactions for mod creation, multipart refactor * fix: Add Cargo.lock so that sqlx functions * Update sqlx offline build data * fix: Use SQLX_OFFLINE to force sqlx into offline mode for CI * Default release channels * feat(postgres): refactor database models to fit postgres models * fix: Fix sqlx prepare, fix double allocation in indexing * Add dockerfile (#40) Co-authored-by: Charalampos Fanoulis <charalampos.fanoulis@gmail.com> Co-authored-by: Aeledfyr <aeledfyr@gmail.com> Co-authored-by: redblueflame <contact@redblueflame.com> Co-authored-by: Jai A <jai.a@tuta.io> Co-authored-by: Valentin Ricard <redblueflame1@gmail.Com> Co-authored-by: Charalampos Fanoulis <charalampos.fanoulis@gmail.com>
34 lines
798 B
YAML
34 lines
798 B
YAML
version: '3'
|
|
services:
|
|
postgres_db:
|
|
image: postgres:alpine
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_DB: postgres
|
|
POSTGRES_USER: labrinth
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
meilisearch:
|
|
image: getmeili/meilisearch
|
|
restart: on-failure
|
|
ports:
|
|
- 7700:7700
|
|
volumes:
|
|
- meilisearch-data:/data.ms
|
|
pgadmin:
|
|
image: dpage/pgadmin4:latest
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: admin@modrinth.com
|
|
PGADMIN_DEFAULT_PASSWORD: secret
|
|
PGADMIN_CONFIG_SERVER_MODE: "False"
|
|
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False"
|
|
ports:
|
|
- "8070:80"
|
|
volumes:
|
|
- ./pgadmin_default_servers.json:/pgadmin4/servers.json
|
|
volumes:
|
|
meilisearch-data:
|
|
db-data:
|