forked from devgateway/dg-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 948 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (39 loc) · 948 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
34
35
36
37
38
39
40
41
42
43
44
services:
web:
build:
context: .
dockerfile: Dockerfile
args:
GIT_BRANCH: main
restart: unless-stopped
environment:
SPRING_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/tcdi_admin"
SPRING_JPA_HIBERNATE_DDL-AUTO: "update"
SPRING_DATASOURCE_USERNAME: "postgres"
SPRING_DATASOURCE_PASSWORD: "admin"
SERVER_PORT: 8083
networks:
- backend
depends_on:
postgres:
condition: service_healthy
postgres:
image: mdillon/postgis
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: postgres
POSTGRES_DB: tcdi_admin
healthcheck:
test: [ "CMD-SHELL", "pg_isready -Upostgres", "-d", "postgres" ]
interval: 10s
timeout: 30s
retries: 3
networks:
backend:
networks:
backend:
volumes:
postgres_data: