Skip to content

Commit

Permalink
Restructuring compose files (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPi4c authored Nov 15, 2024
1 parent c9a3c28 commit 09af114
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 15 deletions.
9 changes: 0 additions & 9 deletions docker-compose-db.yml

This file was deleted.

6 changes: 0 additions & 6 deletions docker-compose.yml

This file was deleted.

19 changes: 19 additions & 0 deletions docker/aio-local/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: kurtama-aio-local
include:
- ../modules/db.yml
services:
kurtama-server-local:
build: ../..
ports:
- "8007:8007"
environment:
SPRING_PROFILES_ACTIVE: dev
SPRING_DATASOURCE_URL: jdbc:postgresql://kurtama-db:5432/kurtama
SPRING_DATASOURCE_USERNAME: kurtama
SPRING_DATASOURCE_PASSWORD: kurtama
SPRING_DATASOURCE_DRIVER-CLASS-NAME: org.postgresql.Driver
networks:
- kurtama-db-network
depends_on:
kurtama-db:
condition: service_healthy
20 changes: 20 additions & 0 deletions docker/aio/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: kurtama-aio
include:
- ../modules/db.yml
services:
kurtama-server:
image: ghcr.io/schlunzis/kurtama/server
ports:
- "8007:8007"
environment:
SPRING_PROFILES_ACTIVE: dev
# SPRING_PROFILES_ACTIVE: prod
SPRING_DATASOURCE_URL: jdbc:postgresql://kurtama-db:5432/kurtama
SPRING_DATASOURCE_USERNAME: kurtama
SPRING_DATASOURCE_PASSWORD: kurtama
SPRING_DATASOURCE_DRIVER-CLASS-NAME: org.postgresql.Driver
networks:
- kurtama-db-network
depends_on:
kurtama-db:
condition: service_healthy
25 changes: 25 additions & 0 deletions docker/modules/db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: kurtama-db
services:
kurtama-db:
image: postgres:17-alpine
environment:
POSTGRES_USER: kurtama
POSTGRES_PASSWORD: kurtama
POSTGRES_DB: kurtama
PGUSER: kurtama
# ports:
# - "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 1s
timeout: 5s
retries: 10
# volumes:
# - kurtama-db:/var/lib/postgresql/data
networks:
- kurtama-db-network

networks:
kurtama-db-network:
# volumes:
# kurtama-db:

0 comments on commit 09af114

Please sign in to comment.