Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: docker-compose.dev.yaml (#2695)
Noah Alderton673809e07d5c
diff --git a/.gitignore b/.gitignoreindex ba1958d41..17f64ee21 100644--- a/.gitignore+++ b/.gitignore@@ -16,6 +16,9 @@ build# Jetbrains.idea+# Docker Compose Environment File+.env+bin/air-dev-dist\ No newline at end of file+dev-distdiff --git a/scripts/docker-compose.dev.yaml b/scripts/docker-compose.dev.yamlindex 6e4039dbb..b72a47684 100644--- a/scripts/docker-compose.dev.yaml+++ b/scripts/docker-compose.dev.yaml@@ -1,8 +1,13 @@+version: "3.0"+name: memos-devservices:db:image: mysqlvolumes:- - ./.air/mysql:/var/lib/mysql+ - ./../.air/mysql:/var/lib/mysql+ environment:+ MYSQL_ALLOW_EMPTY_PASSWORD: yes+ MYSQL_DATABASE: memosapi:image: cosmtrek/airworking_dir: /work@@ -11,8 +16,8 @@ services:- "MEMOS_DSN=root@tcp(db)/memos"- "MEMOS_DRIVER=mysql"volumes:- - .:/work/- - .air/go-build:/root/.cache/go-build+ - ./..:/work/+ - ./../.air/go-build:/root/.cache/go-build- $HOME/go/pkg/:/go/pkg/ # Cache for go mod shared with the hostweb:image: node:20-alpine@@ -23,8 +28,7 @@ services:entrypoint: ["/bin/sh", "-c"]command: ["corepack enable && pnpm install && pnpm dev"]volumes:- - ./web:/work- - ./.air/node_modules/:/work/node_modules/ # Cache for Node Modules+ - ./../web:/work# Services below are used for developers to run once#@@ -43,8 +47,8 @@ services:working_dir: /work/protocommand: generatevolumes:- - ./proto:/work/proto- - ./web/src/types/:/work/web/src/types/+ - ./../proto:/work/proto+ - ./../web/src/types/:/work/web/src/types/# Do golang static code check before create PRgolangci-lint:@@ -55,8 +59,8 @@ services:command: run -vvolumes:- $HOME/go/pkg/:/go/pkg/ # Cache for go mod shared with the host- - .air/go-build:/root/.cache/go-build- - .:/work/+ - ./../.air/go-build:/root/.cache/go-build+ - ./..:/work/# run npmnpm:@@ -66,5 +70,4 @@ services:environment: ["NPM_CONFIG_UPDATE_NOTIFIER=false"]entrypoint: "npm"volumes:- - ./web:/work- - ./.air/node_modules/:/work/node_modules/+ - ./../web:/workdiff --git a/web/.gitignore b/web/.gitignoreindex f4e178b9b..77f1076b8 100644--- a/web/.gitignore+++ b/web/.gitignore@@ -1,4 +1,5 @@node_modules+.pnpm-store.DS_Storedistdist-ssr