v0.10.0
This commit is contained in:
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM node:latest
|
||||||
|
EXPOSE 13120
|
||||||
|
WORKDIR /
|
||||||
|
#COPY config/default.json /data/gancio/config/gancio_config.json
|
||||||
|
RUN yarn global add gancio
|
||||||
|
ENTRYPOINT ["gancio", "start", "--config", "/data/gancio/gancio_config.json"]
|
||||||
|
#CMD ["gancio", "start", "--config", "/data/gancio/gancio_config.json"]
|
||||||
34
docker-compose.yml
Normal file
34
docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres
|
||||||
|
container_name: postgres
|
||||||
|
volumes:
|
||||||
|
# - ./db.sql:docker-entrypoint-initdb.d/db.sql
|
||||||
|
- db:/var/lib/postgres
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gancio
|
||||||
|
- POSTGRES_DB=gancio
|
||||||
|
- POSTGRES_PASSWORD=gancio
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
app:
|
||||||
|
image: node:latest
|
||||||
|
container_name: gancio
|
||||||
|
build: .
|
||||||
|
volumes:
|
||||||
|
- ./db.sqlite:/data/gancio/db.sqlite
|
||||||
|
- ./gancio_config.json:/data/gancio/gancio_config.json:ro
|
||||||
|
- ./uploads:/data/gancio/uploads
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
ports:
|
||||||
|
- 13120:13120
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
gancio:
|
||||||
|
|
||||||
|
|
||||||
7
docker/Dockerfile
Normal file
7
docker/Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM node:latest
|
||||||
|
EXPOSE 13120
|
||||||
|
WORKDIR /
|
||||||
|
#COPY config/default.json /data/gancio/config/gancio_config.json
|
||||||
|
RUN yarn global add gancio
|
||||||
|
#ENTRYPOINT ["gancio", "--config", "/gancio/config.json"]
|
||||||
|
#CMD ["gancio", "start", "--config", "/data/gancio/gancio_config.json"]
|
||||||
BIN
docker/db.sqlite
Normal file
BIN
docker/db.sqlite
Normal file
Binary file not shown.
33
docker/docker-compose.yml
Normal file
33
docker/docker-compose.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres
|
||||||
|
container_name: postgres
|
||||||
|
volumes:
|
||||||
|
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||||
|
- db:/var/lib/postgres
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gancio
|
||||||
|
- POSTGRES_DB=gancio
|
||||||
|
- POSTGRES_PASSWORD=gancio
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
|
gancio:
|
||||||
|
build: .
|
||||||
|
image: node:latest
|
||||||
|
container_name: gancio
|
||||||
|
command: gancio start /gancio/config.json
|
||||||
|
volumes:
|
||||||
|
- ./db.sqlite:/gancio/db.sqlite
|
||||||
|
- ./config.json:/gancio/config.json
|
||||||
|
- ./uploads:/gancio/uploads
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
ports:
|
||||||
|
- 13120:13120
|
||||||
|
volumes:
|
||||||
|
db:
|
||||||
|
gancio:
|
||||||
0
docker/init.db
Normal file
0
docker/init.db
Normal file
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gancio",
|
"name": "gancio",
|
||||||
"version": "0.9.31",
|
"version": "0.10.0",
|
||||||
"description": "A shared agenda for local communities",
|
"description": "A shared agenda for local communities",
|
||||||
"author": "lesion",
|
"author": "lesion",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user