Initial commit - BNS System
This commit is contained in:
52
docker-compose.prod.yml
Normal file
52
docker-compose.prod.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
services:
|
||||
bns_system:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: bns_system
|
||||
restart: always
|
||||
env_file:
|
||||
- .env.production
|
||||
# ports: # Traefik will handle exposing the service
|
||||
stdin_open: true
|
||||
tty: true
|
||||
depends_on:
|
||||
- bns_system-db
|
||||
environment:
|
||||
CATALINA_OPTS: >-
|
||||
-DDB_URL=${DB_URL}
|
||||
-DDB_USERNAME=${DB_USERNAME}
|
||||
-DDB_PASSWORD=${DB_PASSWORD}
|
||||
volumes:
|
||||
- /home/bns_system/project_data:/data_storage
|
||||
- /home/bns_system/app_data:/path/inside/container
|
||||
- ./WebContent:/usr/local/tomcat/webapps/ROOT
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.bns_system.rule=Host(`bns-system.esgrin.com`)
|
||||
- traefik.http.routers.bns_system.entrypoints=websecure,web
|
||||
- traefik.http.routers.bns_system.tls=true
|
||||
- traefik.http.routers.bns_system.tls.certresolver=le
|
||||
- traefik.http.services.bns_system.loadbalancer.server.port=8080
|
||||
|
||||
bns_system-db:
|
||||
image: dockerhub.wace.me/postgres:16.8-alpine3.21.linux
|
||||
container_name: bns_system-db
|
||||
restart: always
|
||||
env_file:
|
||||
- .env.production
|
||||
volumes:
|
||||
- /home/bns_system/postgres_data:/var/lib/postgresql/data
|
||||
|
||||
ports:
|
||||
- "11134:5432"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d waceplm"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: toktork_server_default
|
||||
Reference in New Issue
Block a user