Skip to content

Commit

Permalink
chore: remove everything related to mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
sjschlapbach committed Oct 31, 2024
1 parent 478d328 commit a616e40
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 205 deletions.
85 changes: 0 additions & 85 deletions deploy/azure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,91 +135,6 @@ const logAnalytics = new azure.operationalinsights.Workspace(
}
)

const klickerProdCosmosDB = new azure.documentdb.DatabaseAccount(
`${PREFIX}-cosmosdb`,
{
apiProperties: {
serverVersion: azure.documentdb.ServerVersion.ServerVersion_4_0,
},
backupPolicy: {
type: 'Continuous',
},
capabilities: [
{
name: 'EnableMongo',
},
{
name: 'DisableRateLimitingResponses',
},
{
name: 'EnableServerless',
},
],
consistencyPolicy: {
defaultConsistencyLevel: 'Session',
},
databaseAccountOfferType: 'Standard',
defaultIdentity: 'FirstPartyIdentity',
disableKeyBasedMetadataWriteAccess: false,
enableAnalyticalStorage: false,
enableAutomaticFailover: false,
enableFreeTier: false,
enableMultipleWriteLocations: false,
isVirtualNetworkFilterEnabled: true,
identity: {
type: 'None',
},
ipRules: [
{
ipAddressOrRange: '51.138.0.0/16',
},
{
ipAddressOrRange: '51.124.0.0/16',
},
{
ipAddressOrRange: '20.50.2.42',
},
{
ipAddressOrRange: '40.114.174.73',
},
{
ipAddressOrRange: '20.126.0.0/16',
},
{
ipAddressOrRange: '20.31.0.0/16',
},
{
ipAddressOrRange: '20.105.0.0/16',
},
],
kind: 'MongoDB',
location: LOCATION,
locations: [
{
failoverPriority: 0,
isZoneRedundant: false,
locationName: LOCATION,
},
],
networkAclBypass: 'None',
publicNetworkAccess: 'Enabled',
resourceGroupName: mainRG.name,
tags: {
defaultExperience: 'Azure Cosmos DB for MongoDB API',
'hidden-cosmos-mmspecial': '',
},
virtualNetworkRules: [
{
id: defaultSubnet.id,
ignoreMissingVNetServiceEndpoint: false,
},
],
},
{
protect: true,
}
)

// create a kubernetes cluster for workloads
const k8sCluster = new azure.containerservice.ManagedCluster(
`${PREFIX}-k8s`,
Expand Down
11 changes: 0 additions & 11 deletions deploy/compose-traefik-proxy/klicker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,6 @@ services:
restart: unless-stopped
image: redis:5.0.9

# mongodb database
# it is recommended to run this service outside of docker
mongodb:
restart: unless-stopped
image: mongo:4.0
env_file: services.env
volumes:
#- /data/klicker/mongo/:/data/db
- mongo-data:/data/db

# minio storage platform for S3
minio:
restart: unless-stopped
Expand Down Expand Up @@ -136,7 +126,6 @@ services:
volumes:
redis-data:
minio-data:
mongo-data:

networks:
traefik_proxy:
Expand Down
14 changes: 0 additions & 14 deletions deploy/compose-traefik-proxy/klicker/services.env
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,19 @@ S3_ENDPOINT=https://your-domain.example

APP_SECRET=56f79f1625e311ec8a8e2fff30e1c79a

MONGO_PASSWORD=5a900ae625e311eca314cf6a19e3845a

## internal
APP_HTTPS=false
CACHE_REDIS_PORT=6379
EXEC_REDIS_HOST=redis_exec
EXEC_REDIS_PORT=6379
EXEC_REDIS_TLS=false
MONGO_URL=mongodb:27017/klicker?authSource=admin
MONGO_USER=klicker
S3_ENABLED=true
S3_ACCESS_KEY=minioadmin
S3_BUCKET=images
SECURITY_CORS_CREDENTIALS=true
SECURITY_HSTS_ENABLED=false
SECURITY_RATE_LIMIT_ENABLED=true




# mongo
MONGO_INITDB_ROOT_USERNAME=klicker
MONGO_INITDB_ROOT_PASSWORD=5a900ae625e311eca314cf6a19e3845a




# minio
MINIO_API_CORS_ALLOW_ORIGIN=https://your-domain.example

Expand Down
19 changes: 0 additions & 19 deletions deploy/compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ services:
EMAIL_PORT:
EMAIL_USER:
EMAIL_PASSWORD:
MONGO_URL: mongodb:27017/klicker?authSource=admin
MONGO_USER: klicker
MONGO_PASSWORD: klicker
S3_ENABLED: 'true'
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin
Expand Down Expand Up @@ -94,21 +91,6 @@ services:
networks:
- klicker

# mongodb database
# it is recommended to run this service outside of docker
mongodb:
restart: unless-stopped
image: mongo:4.0
environment:
MONGO_INITDB_ROOT_USERNAME: klicker
MONGO_INITDB_ROOT_PASSWORD: klicker
# ports:
# - 27017:27017
networks:
- klicker
volumes:
- mongo-data:/data/db

# minio storage platform for S3
minio:
restart: unless-stopped
Expand Down Expand Up @@ -144,7 +126,6 @@ services:
volumes:
redis-data:
minio-data:
mongo-data:

networks:
klicker:
Expand Down
12 changes: 0 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,6 @@ services:
networks:
- klicker

mongodb:
image: mongo:4.0
environment:
MONGO_INITDB_ROOT_USERNAME: klicker
MONGO_INITDB_ROOT_PASSWORD: klicker
ports:
- 27017:27017
networks:
- klicker
volumes:
- /data/db

networks:
klicker:
driver: bridge
Expand Down
1 change: 0 additions & 1 deletion packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"graphql-yoga": "3.9.1",
"jsonwebtoken": "9.0.2",
"mathjs": "11.9.1",
"mongodb": "5.7.0",
"node-schedule": "2.1.1",
"nodemailer": "6.9.15",
"remeda": "2.15.0",
Expand Down
22 changes: 0 additions & 22 deletions packages/graphql/src/lib/mongo.ts

This file was deleted.

41 changes: 0 additions & 41 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a616e40

Please sign in to comment.