-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 1.05 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
version: '3.9'
services:
issuer-rs:
build:
context: .
dockerfile: Dockerfile
image: issuer-rs
hostname: issuer-rs
container_name: issuer-rs
restart: unless-stopped
ports:
- "3213:3213"
env_file: ./server/.env
depends_on:
issuer-postgres:
condition: service_healthy
profiles:
- deploy
networks:
- issuer-net
issuer-postgres:
container_name: issuer-postgres
hostname: issuer-postgres
image: postgres:latest
ports:
- "5433:5432"
volumes:
- ./server/postgresdata:/var/lib/postgresql/data
- ./server/src/repository/sql/dbinit.sql:/docker-entrypoint-initdb.d/dbinit.sql
restart: always
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: issuer
POSTGRES_DB: identity
profiles:
- dev
- deploy
networks:
- issuer-net
networks:
issuer-net: