Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9cfaa68e
authored
Mar 06, 2026
by
pigletfly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(compose): Add explicit bridge network
parent
57d52586
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
docker-compose.yml
+12
-0
No files found.
docker-compose.yml
View file @
9cfaa68e
...
...
@@ -43,6 +43,8 @@ services:
-
redis
-
postgres
# - mysql # Uncomment if using MySQL
networks
:
-
new-api-network
healthcheck
:
test
:
[
"
CMD-SHELL"
,
"
wget
-q
-O
-
http://localhost:3000/api/status
|
grep
-o
'
\"
success
\"
:
\\
s*true'
||
exit
1"
]
interval
:
30s
...
...
@@ -53,6 +55,8 @@ services:
image
:
redis:latest
container_name
:
redis
restart
:
always
networks
:
-
new-api-network
postgres
:
image
:
postgres:15
...
...
@@ -64,6 +68,8 @@ services:
POSTGRES_DB
:
new-api
volumes
:
-
pg_data:/var/lib/postgresql/data
networks
:
-
new-api-network
# ports:
# - "5432:5432" # Uncomment if you need to access PostgreSQL from outside Docker
...
...
@@ -76,9 +82,15 @@ services:
# MYSQL_DATABASE: new-api
# volumes:
# - mysql_data:/var/lib/mysql
# networks:
# - new-api-network
# ports:
# - "3306:3306" # Uncomment if you need to access MySQL from outside Docker
volumes
:
pg_data
:
# mysql_data:
networks
:
new-api-network
:
driver
:
bridge
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