build: up-to-date docker compose
This commit is contained in:
parent
a969629f2d
commit
5edfb87d3b
@ -1,3 +1,5 @@
|
|||||||
|
# shellcheck disable=all
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
PG_USER=""
|
PG_USER=""
|
||||||
PG_PASS=""
|
PG_PASS=""
|
||||||
@ -5,4 +7,11 @@ PG_DB=""
|
|||||||
|
|
||||||
# Server
|
# Server
|
||||||
JWT_SECRET=""
|
JWT_SECRET=""
|
||||||
LOG_LEVEL="debug"
|
CSRF_SECRET="" # Should be 32 bytes long
|
||||||
|
ADMIN_USERNAME=""
|
||||||
|
ADMIN_PASSWORD=""
|
||||||
|
LOG_LEVEL="info"
|
||||||
|
APP_ENV="production"
|
||||||
|
DOMAIN=""
|
||||||
|
FRONTEND_URL=""
|
||||||
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
|
data/
|
||||||
TASKS.md
|
TASKS.md
|
||||||
.env
|
.env
|
||||||
|
@ -10,8 +10,7 @@ services:
|
|||||||
retries: 5
|
retries: 5
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
volumes:
|
volumes:
|
||||||
# Alternatively mount to disk -> ${PWD}/data
|
- ${PWD}/data:/var/lib/postgresql/data
|
||||||
- notatest-data:/var/lib/postgresql/data
|
|
||||||
networks:
|
networks:
|
||||||
- notatest
|
- notatest
|
||||||
environment:
|
environment:
|
||||||
@ -27,35 +26,32 @@ services:
|
|||||||
image: notatest-server:latest
|
image: notatest-server:latest
|
||||||
networks:
|
networks:
|
||||||
- notatest
|
- notatest
|
||||||
ports:
|
|
||||||
- 8080:8080 # TODO: remove forwarding after testing
|
|
||||||
depends_on:
|
depends_on:
|
||||||
notatest-psql:
|
notatest-psql:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
JWT_SECRET: ${JWT_SECRET:?jwt secret required}
|
JWT_SECRET: ${JWT_SECRET:?jwt secret required}
|
||||||
DB_URL: postgres://${PG_USER:-notatest}:${PG_PASS:?db password required}@notatest-psql/${PG_DB:-notatest}?sslmode=disable
|
DB_URL: postgres://${PG_USER:-notatest}:${PG_PASS:?db password required}@notatest-psql/${PG_DB:-notatest}?sslmode=disable
|
||||||
LOG_LEVEL: ${LOG_LEVEL:-info}
|
CSRF_SECRET: ${CSRF_SECRET:?csrf secret required}
|
||||||
ADMIN_USERNAME: ${ADMIN_USERNAME:?init admin username required}
|
ADMIN_USERNAME: ${ADMIN_USERNAME:?init admin username required}
|
||||||
ADMIN_PASSWORD: ${ADMIN_PASSWORD:?init admin password required}
|
ADMIN_PASSWORD: ${ADMIN_PASSWORD:?init admin password required}
|
||||||
|
LOG_LEVEL: ${LOG_LEVEL:-info}
|
||||||
|
APP_ENV: ${APP_ENV:-production}
|
||||||
|
DOMAIN: ${DOMAIN:-localhost}
|
||||||
|
FRONTEND_URL: ${FRONTEND_URL:-http://localhost:5173}
|
||||||
|
|
||||||
# notatest-web:
|
notatest-web:
|
||||||
# build: ${PWD}/web
|
build: ${PWD}/web
|
||||||
# image: notatest/web
|
image: notatest/web
|
||||||
# container_name: notatest-web
|
container_name: notatest-web
|
||||||
# networks:
|
networks:
|
||||||
# - notatest
|
- notatest
|
||||||
# ports:
|
ports:
|
||||||
# - 3030:3030
|
- 3000:80 # Defined in nginx.conf
|
||||||
# depends_on:
|
depends_on:
|
||||||
# notatest-psql:
|
- notatest-server
|
||||||
# condition: service_healthy
|
|
||||||
# notatest-server:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
notatest:
|
notatest:
|
||||||
external: false
|
external: false
|
||||||
name: notatest
|
name: notatest
|
||||||
|
|
||||||
volumes:
|
|
||||||
notatest-data:
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user