-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 797 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 797 Bytes
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
version: "3.3"
services:
web:
build: .
environment:
PORT: ${WEB_PORT}
JDBC_URL: ${WEB_DB_URL}
DATABASE: ${WEB_DATABASE}
DB_USERNAME: ${WEB_DB_USERNAME}
DB_PASSWORD: ${WEB_DB_PASSWORD}
JWT_SECRET: secret
JWT_ISSUER: ${JWT_ISSUER}
JWT_AUDIENCE: ${JWT_AUDIENCE}
JWT_REALM: ${JWT_REALM}
JWT_EXPIRATION: ${JWT_EXPIRATION}
ports:
- "${WEB_PORT}:${WEB_PORT}"
depends_on:
- db
db:
image: postgres
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${WEB_DATABASE}
POSTGRES_USER: ${WEB_DB_USERNAME}
POSTGRES_PASSWORD: ${WEB_DB_PASSWORD}
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 1s