Working nassella running on nassella!!
This commit is contained in:
51
all-apps/nassella/docker-compose.yaml
Normal file
51
all-apps/nassella/docker-compose.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
version: '3'
|
||||
|
||||
secrets:
|
||||
nassella_postgres_db:
|
||||
file: ./nassella/postgres_db
|
||||
nassella_postgres_password:
|
||||
file: ./nassella/postgres_password
|
||||
nassella_postgres_user:
|
||||
file: ./nassella/postgres_user
|
||||
|
||||
services:
|
||||
nassella_db:
|
||||
image: postgres:17.6-trixie
|
||||
env_file:
|
||||
- ./nassella/nassella.env
|
||||
shm_size: 128mb
|
||||
restart: always
|
||||
volumes:
|
||||
- /nassella/nassella/var-lib-postgresql-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- nassella_internal
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d `cat $$POSTGRES_DB_FILE` -U `cat $$POSTGRES_USER_FILE`"]
|
||||
start_period: 15s
|
||||
interval: 30s
|
||||
retries: 3
|
||||
timeout: 5s
|
||||
secrets:
|
||||
- nassella_postgres_db
|
||||
- nassella_postgres_password
|
||||
- nassella_postgres_user
|
||||
nassella:
|
||||
image: nassella/b0.0.1
|
||||
depends_on:
|
||||
nassella_db:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- ./nassella/nassella.env
|
||||
secrets:
|
||||
- nassella_postgres_db
|
||||
- nassella_postgres_password
|
||||
- nassella_postgres_user
|
||||
networks:
|
||||
- lb
|
||||
- nassella_internal
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
lb:
|
||||
nassella_internal:
|
||||
driver: bridge
|
||||
internal: true
|
||||
4
all-apps/nassella/nassella.env
Normal file
4
all-apps/nassella/nassella.env
Normal file
@@ -0,0 +1,4 @@
|
||||
POSTGRES_HOST=nassella_db
|
||||
POSTGRES_DB_FILE=/run/secrets/nassella_postgres_db
|
||||
POSTGRES_USER_FILE=/run/secrets/nassella_postgres_user
|
||||
POSTGRES_PASSWORD_FILE=/run/secrets/nassella_postgres_password
|
||||
1
all-apps/nassella/postgres_db
Normal file
1
all-apps/nassella/postgres_db
Normal file
@@ -0,0 +1 @@
|
||||
nassella
|
||||
1
all-apps/nassella/postgres_password
Normal file
1
all-apps/nassella/postgres_password
Normal file
@@ -0,0 +1 @@
|
||||
password
|
||||
1
all-apps/nassella/postgres_user
Normal file
1
all-apps/nassella/postgres_user
Normal file
@@ -0,0 +1 @@
|
||||
nassella
|
||||
Reference in New Issue
Block a user