new docker setup (run as user, install from site not npm)

This commit is contained in:
les 2021-06-04 12:49:49 +02:00
parent 392c1cfc0c
commit 600caebf79
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 18 additions and 18 deletions

View file

@ -1,3 +1,2 @@
FROM node:latest
WORKDIR /
RUN yarn global add gancio
FROM node:buster
RUN yarn global add --silent https://gancio.org/latest.tgz 2> /dev/null

View file

@ -17,16 +17,17 @@ services:
- 5432:5432
gancio:
build: .
image: node:latest
environment:
- DEBUG=*,-babel,-follow-redirects,-send,-body-parser:*,-express:*,-connect:*,-sequelize:*
container_name: gancio
restart: always
command: gancio start --docker --db=postgres
image: node:buster
user: node
container_name: gancio
environment:
- PATH=$PATH:/home/node/.yarn/bin
- GANCIO_DATA=/home/node/data
command: gancio start --docker
volumes:
- ./config.json:/opt/gancio/config.json
- ./uploads:/opt/gancio/uploads
- ./data:/home/node/data
ports:
- "127.0.0.1:13120:13120"
depends_on:
- db
ports:
- 127.0.0.1:13120:13120

View file

@ -4,14 +4,14 @@ services:
gancio:
build: .
restart: always
image: node:latest
image: node:buster
user: node
container_name: gancio
command: gancio start --docker --db=sqlite
environment:
- DEBUG=*,-babel,-follow-redirects,-send,-body-parser:*,-express:*,-connect:*,-sequelize:*
- PATH=$PATH:/home/node/.yarn/bin
- GANCIO_DATA=/home/node/data
command: gancio start --docker
volumes:
- ./db.sqlite:/opt/gancio/db.sqlite
- ./config.json:/opt/gancio/config.json
- ./uploads:/opt/gancio/uploads
- ./data:/home/node/data
ports:
- "127.0.0.1:13120:13120"