snibox: add
This commit is contained in:
parent
8f8a863ad0
commit
7079e0d066
11
.env
11
.env
|
@ -6,6 +6,10 @@ EMAIL_FROM=kucharczyk.lukas@gmail.com
|
|||
EMAIL_HOST=smtp.gmail.com
|
||||
EMAIL_PASSWORD=sebrubdsgkuptcjr
|
||||
EMAIL_PORT=587
|
||||
POSTGRES_HOST=postgres
|
||||
POSTGRES_USERNAME=lukas
|
||||
POSTGRES_PASSWORD=kralovna
|
||||
POSTGRES_PORT=5432
|
||||
PUID=1000
|
||||
PGID=100
|
||||
KAVITA_INTERNAL_PORT=5000
|
||||
|
@ -25,4 +29,9 @@ TIMETRACKER_INTERNAL_PORT=8000
|
|||
MEALIE_EXTERNAL_PORT=9925
|
||||
MEALIE_INTERNAL_PORT=80
|
||||
TRILIUM_EXTERNAL_PORT=8080
|
||||
TRILIUM_INTERNAL_PORT=8080
|
||||
TRILIUM_INTERNAL_PORT=8080
|
||||
SNIBOX_POSTGRES_DB_NAME=snibox
|
||||
SNIBOX_EXTERNAL_PORT=3003
|
||||
SNIBOX_INTERNAL_PORT=80
|
||||
NETBOOTXYZ_INTERNAL_PORT=3001
|
||||
GITEA_INTERNAL_PORT=3002
|
|
@ -0,0 +1,50 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
image: snibox/nginx-puma:1.15.9
|
||||
ports:
|
||||
- "${SNIBOX_EXTERNAL_PORT}:${SNIBOX_INTERNAL_PORT}"
|
||||
volumes:
|
||||
- static-files:/var/www/html
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
backend:
|
||||
image: snibox/snibox:latest
|
||||
command: sh -c "rm -rf tmp/pids && ./bin/rails s -p 3000 -b '0.0.0.0'"
|
||||
environment:
|
||||
DB_NAME: "${SNIBOX_POSTGRES_DB_NAME}"
|
||||
DB_USER: "${POSTGRES_USERNAME}"
|
||||
DB_PASS: "${POSTGRES_PASSWORD}"
|
||||
DB_HOST: "${POSTGRES_HOST}"
|
||||
DB_PORT: "${POSTGRES_PORT}"
|
||||
FORCE_SSL: "${FORCE_SSL}"
|
||||
MAILGUN_SMTP_PORT: "${MAILGUN_SMTP_PORT}"
|
||||
MAILGUN_SMTP_SERVER: "${MAILGUN_SMTP_SERVER}"
|
||||
MAILGUN_SMTP_LOGIN: "${MAILGUN_SMTP_LOGIN}"
|
||||
MAILGUN_SMTP_PASSWORD: "${MAILGUN_SMTP_PASSWORD}"
|
||||
MAILGUN_API_KEY: "${MAILGUN_API_KEY}"
|
||||
MAILGUN_DOMAIN: "${MAILGUN_DOMAIN}"
|
||||
MAILGUN_PUBLIC_KEY: "${MAILGUN_PUBLIC_KEY}"
|
||||
SECRET_KEY_BASE: "${SECRET_KEY_BASE}"
|
||||
ports:
|
||||
- "${SNIBOX_EXTERNAL_PORT}:${SNIBOX_INTERNAL_PORT}"
|
||||
volumes:
|
||||
- static-files:/app/public
|
||||
networks:
|
||||
- postgres
|
||||
# depends_on:
|
||||
# - database
|
||||
|
||||
# database:
|
||||
# image: postgres:10.7-alpine
|
||||
# volumes:
|
||||
# - pg-data:/var/lib/postgresql/data
|
||||
|
||||
networks:
|
||||
postgres:
|
||||
external: true
|
||||
volumes:
|
||||
# pg-data:
|
||||
static-files:
|
Loading…
Reference in New Issue