Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
snip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
irp
snip
Commits
27c6c4bb
Commit
27c6c4bb
authored
6 months ago
by
Sebastian Mohr
Browse files
Options
Downloads
Patches
Plain Diff
Added docker compose for local prod without registry
parent
46a51930
No related branches found
No related tags found
No related merge requests found
Pipeline
#509645
passed
6 months ago
Stage: lint
Stage: release
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.prod-local.yml
+98
-0
98 additions, 0 deletions
docker-compose.prod-local.yml
package.json
+1
-1
1 addition, 1 deletion
package.json
with
99 additions
and
1 deletion
docker-compose.prod-local.yml
0 → 100644
+
98
−
0
View file @
27c6c4bb
x-env_file
:
&env_file
# Path to the used configuration file
-
.env
services
:
nginx
:
container_name
:
snip_nginx
image
:
nginx
volumes
:
-
./apps/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
-
./apps/nginx/static:/static
-
./apps/nginx/ssl:/ssl
ports
:
-
${PORT}:443
depends_on
:
-
next
-
images
env_file
:
*env_file
next
:
container_name
:
snip_next
build
:
context
:
.
dockerfile
:
Dockerfile_node
target
:
next
depends_on
:
-
mariadb
env_file
:
*env_file
images
:
container_name
:
snip_images
image
:
docker.gitlab.gwdg.de/irp/snip/images:latest
build
:
context
:
.
dockerfile
:
Dockerfile_node
target
:
images
env_file
:
*env_file
volumes
:
# If you want to image cache to persist between restarts
# Also include the images volume below
-
images:/usr/src/app/images
socket
:
container_name
:
snip_socket
build
:
context
:
.
dockerfile
:
Dockerfile_node
target
:
socket
env_file
:
*env_file
email
:
container_name
:
snip_email
build
:
context
:
.
dockerfile
:
Dockerfile_node
target
:
email
env_file
:
*env_file
mariadb
:
image
:
mariadb:10.6
container_name
:
mariadb
command
:
[
"
--default-authentication-plugin=mysql_native_password"
,
"
--max_connections=210"
,
]
environment
:
MYSQL_ROOT_PASSWORD
:
${MYSQL_ROOT_PASSWORD}
MYSQL_USER
:
${MYSQL_USER}
MYSQL_PASSWORD
:
${MYSQL_PASSWORD}
volumes
:
-
database:/var/lib/mysql
-
./database/dumps/init.sql:/docker-entrypoint-initdb.d/init.sql
-
/tmp/backup:/backup
#Direct mount to the host
expose
:
-
3306
ports
:
-
3306:3306
logging
:
options
:
max-size
:
"
200k"
max-file
:
"
10"
phpmyadmin
:
image
:
phpmyadmin/phpmyadmin:latest
container_name
:
phpmyadmin
links
:
-
mariadb
ports
:
-
5667:80
environment
:
PMA_ARBITRARY
:
0
PMA_HOST
:
mariadb
PMA_PORT
:
3306
restart
:
always
depends_on
:
-
mariadb
logging
:
options
:
max-size
:
"
200k"
max-file
:
"
10"
volumes
:
database
:
images
:
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
27c6c4bb
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
"
eslint
"
:
"
^8.57.0
"
,
"
eslint
"
:
"
^8.57.0
"
,
"
prettier
"
:
"
^3.3.3
"
"
prettier
"
:
"
^3.3.3
"
},
},
"packageManager"
:
"pnpm@9.1
0
.0"
,
"packageManager"
:
"pnpm@9.1
1
.0"
,
"engines"
:
{
"engines"
:
{
"node"
:
">=18"
"node"
:
">=18"
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment