-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (38 loc) · 1007 Bytes
/
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
version: '2.25.0'
name: jobboard-stack
services:
api:
image: kapiaszczyk/job-board:0.1.0
ports:
- "8080:8080"
depends_on:
- postgres
networks:
- postgres-network
environment:
JDBC_DATABASE_USERNAME: api
JDBC_DATABASE_PASSWORD: apipassword
JDBC_DATABASE_URL: jdbc:postgresql://postgres:5432
JDBC_DATABASE_NAME: jobboard
RATE_LIMIT_BUCKET_CAPACITY: 10
RATE_LIMIT_REFILL_PERIOD_SECONDS: 1
RATE_LIMIT_REFILL_TOKENS: 1
CACHE_INITIAL_CAPACITY: 100
CACHE_MAXIMUM_SIZE: 1000
CACHE_EXPIRE_AFTER_WRITE_MINUTES: 1
postgres:
image: postgres:16
environment:
POSTGRES_USER: api
POSTGRES_PASSWORD: apipassword
POSTGRES_DB: jobboard
volumes:
- ./database:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
networks:
- postgres-network
command: postgres -c log_statement=all
networks:
postgres-network:
driver: bridge