Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Librephotos Docker Scaling
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Dev Ops
Librephotos Docker Scaling
Commits
6d9a0a75
Commit
6d9a0a75
authored
4 years ago
by
Matteo Parrucci
Browse files
Options
Downloads
Patches
Plain Diff
development mode
parent
f9f6e15d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docker-compose.dev.yml
+2
-0
2 additions, 0 deletions
docker-compose.dev.yml
docker-compose.yml
+2
-8
2 additions, 8 deletions
docker-compose.yml
frontend/Dockerfile
+0
-1
0 additions, 1 deletion
frontend/Dockerfile
frontend/entrypoint.sh
+10
-3
10 additions, 3 deletions
frontend/entrypoint.sh
with
14 additions
and
12 deletions
docker-compose.dev.yml
+
2
−
0
View file @
6d9a0a75
...
...
@@ -18,6 +18,8 @@ services:
frontend
:
tty
:
true
environment
:
-
DEBUG=1
build
:
context
:
.
dockerfile
:
frontend/Dockerfile
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
2
−
8
View file @
6d9a0a75
...
...
@@ -30,11 +30,6 @@ services:
volumes
:
-
${dbLocation}:/var/lib/postgresql/data
command
:
postgres -c fsync=off -c synchronous_commit=off -c full_page_writes=off -c random_page_cost=1.0
healthcheck
:
test
:
[
'
CMD-SHELL'
,
'
pg_isready
-d
$dbName
-U
$dbUser'
]
interval
:
5s
timeout
:
5s
retries
:
5
frontend
:
image
:
reallibrephotos/librephotos-frontend:${tag}
...
...
@@ -80,9 +75,8 @@ services:
# Wait for Postgres
depends_on
:
db
:
condition
:
service_healthy
-
db
redis
:
image
:
redis
restart
:
always
\ No newline at end of file
restart
:
always
This diff is collapsed.
Click to expand it.
frontend/Dockerfile
+
0
−
1
View file @
6d9a0a75
...
...
@@ -5,7 +5,6 @@ RUN apt-get update && apt-get install -y curl git xsel
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
RUN
npm
install
-g
npm
RUN
npm
install
-g
serve
ENV
CLI_WIDTH 80
RUN
git clone https://github.com/LibrePhotos/librephotos-frontend.git /usr/src/app
RUN
npm ci
...
...
This diff is collapsed.
Click to expand it.
frontend/entrypoint.sh
+
10
−
3
View file @
6d9a0a75
#!/usr/bin/env bash
echo
"
build
ing frontend"
echo
"
install
ing frontend"
npm
install
npm run build
echo
"serving frontend"
serve build
-d
-l
3000
[
"
$DEBUG
"
=
1
]
then
:
echo
"develompent running frontend"
npm run start
else
:
echo
"production building frontend"
npm
install
-g
serve
npm run build
echo
"productions running frontend"
serve build
-d
-l
3000
# DANGEROUSLY_DISABLE_HOST_CHECK=true HOST=0.0.0.0 npm start
\ No newline at end of file
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