You've already forked AstralRinth
forked from didirus/AstralRinth
Switch to Postgres (#39)
* 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>
This commit is contained in:
@@ -1,24 +1,15 @@
|
||||
version: '3'
|
||||
services:
|
||||
mongo:
|
||||
image: mongo
|
||||
restart: always
|
||||
ports:
|
||||
- 27017:27017
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: toor
|
||||
MONGO_INITDB_ROOT_PASSWORD: modrinthadmin
|
||||
postgres_db:
|
||||
image: postgres:alpine
|
||||
volumes:
|
||||
- mongodb-data:/data/db
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
restart: always
|
||||
- db-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 8081:8081
|
||||
- 5432:5432
|
||||
environment:
|
||||
ME_CONFIG_MONGODB_ADMINUSERNAME: toor
|
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: modrinthadmin
|
||||
ME_CONFIG_OPTIONS_EDITORTHEME: material
|
||||
POSTGRES_DB: postgres
|
||||
POSTGRES_USER: labrinth
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
meilisearch:
|
||||
image: getmeili/meilisearch
|
||||
restart: on-failure
|
||||
@@ -26,8 +17,17 @@ services:
|
||||
- 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:
|
||||
external: true
|
||||
mongodb-data:
|
||||
external: true
|
||||
db-data:
|
||||
|
||||
Reference in New Issue
Block a user