mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
new docker setup (run as user, install from site not npm)
This commit is contained in:
parent
392c1cfc0c
commit
600caebf79
3 changed files with 18 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue