Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
673809e0
Unverified
Commit
673809e0
authored
Jan 02, 2024
by
Noah Alderton
Committed by
GitHub
Jan 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: docker-compose.dev.yaml (#2695)
* Fix docker-compose.dev.yaml * Add newline to .gitignore
parent
f74fa97b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
+19
-12
.gitignore
.gitignore
+4
-1
docker-compose.dev.yaml
scripts/docker-compose.dev.yaml
+14
-11
.gitignore
web/.gitignore
+1
-0
No files found.
.gitignore
View file @
673809e0
...
...
@@ -16,6 +16,9 @@ build
# Jetbrains
.idea
# Docker Compose Environment File
.env
bin/air
dev-dist
\ No newline at end of file
dev-dist
scripts/docker-compose.dev.yaml
View file @
673809e0
version
:
"
3.0"
name
:
memos-dev
services
:
db
:
image
:
mysql
volumes
:
-
./.air/mysql:/var/lib/mysql
-
./../.air/mysql:/var/lib/mysql
environment
:
MYSQL_ALLOW_EMPTY_PASSWORD
:
yes
MYSQL_DATABASE
:
memos
api
:
image
:
cosmtrek/air
working_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 host
web
:
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/proto
command
:
generate
volumes
:
-
./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 PR
golangci-lint
:
...
...
@@ -55,8 +59,8 @@ services:
command
:
run -v
volumes
:
-
$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 npm
npm
:
...
...
@@ -66,5 +70,4 @@ services:
environment
:
[
"
NPM_CONFIG_UPDATE_NOTIFIER=false"
]
entrypoint
:
"
npm"
volumes
:
-
./web:/work
-
./.air/node_modules/:/work/node_modules/
-
./../web:/work
web/.gitignore
View file @
673809e0
node_modules
.pnpm-store
.DS_Store
dist
dist-ssr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment