Skip to content
Snippets Groups Projects
Commit 6d9a0a75 authored by Matteo Parrucci's avatar Matteo Parrucci
Browse files

development mode

parent f9f6e15d
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ services:
frontend:
tty: true
environment:
- DEBUG=1
build:
context: .
dockerfile: frontend/Dockerfile
......
......@@ -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
......@@ -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
......
#!/usr/bin/env bash
echo "building frontend"
echo "installing 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment