-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.61 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
services:
graphql:
build: .
ports:
- "127.0.0.1:3000:3000"
environment:
DATABASE_CONNECTION_STRING: "postgresql://user:password@db:5432/bss"
POSTGRAPHILE_ALLOW_EXPLAIN: "true"
POSTGRAPHILE_GRAPHIQL: "true"
POSTGRAPHILE_WATCH_PG: "true"
POSTGRAPHILE_SHOW_ERROR_STACK: "true"
depends_on:
- backend
healthcheck:
test: "wget --tries=1 --no-verbose -qO- http://localhost:3000/actuator/health | grep -q UP"
start_period: 5s
interval: 10s
timeout: 5s
retries: 3
# once db is initialized, we can shut down the container
# however it makes it easy to add data to the db
backend:
image: ghcr.io/bsstudio/bss-web-admin-backend:v1.8.2
healthcheck:
test: "wget --tries=1 --no-verbose -qO- http://localhost:8080/actuator/health | grep -q UP"
start_period: 5s
interval: 10s
timeout: 5s
retries: 5
depends_on:
- db
environment:
bss.file-api.url: "http://mock-file-api:8080"
spring.security.user.password: "password"
spring.datasource.url: "jdbc:postgresql://db:5432/bss?currentSchema=private"
spring.datasource.username: "user"
spring.datasource.password: "password"
spring.flyway.default-schema: "private"
spring.flyway.schemas: "private, public"
db:
image: "postgres:16.3-alpine3.18"
ports:
- "127.0.0.1:5432:5432"
environment:
POSTGRES_DB: "bss"
POSTGRES_USER: "user"
POSTGRES_PASSWORD: "password"
healthcheck:
test: "pg_isready -q -U postgres"
start_period: 5s
interval: 30s
timeout: 5s
retries: 3