-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (44 loc) · 1019 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
41
42
43
44
45
46
version: '3'
services:
spring-app:
image: ghcr.io/peageon/ssock:latest
ports:
- "8080:8080"
depends_on:
- postgres-db
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres-db:5432/test_db
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: 1234
networks:
- backend
postgres-db:
image: postgis/postgis:16-3.4
environment:
POSTGRES_DB: test_db
POSTGRES_USER: root
POSTGRES_PASSWORD: 1234
TZ: UTC
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init-postgis.sh:/docker-entrypoint-initdb.d/init-postgis.sh
networks:
- backend
# postgres-db:
# image: postgres:latest
# environment:
# POSTGRES_DB: test_db
# POSTGRES_USER: root
# POSTGRES_PASSWORD: 1234
# ports:
# - "5432:5432"
# volumes:
# - postgres-data:/var/lib/postgresql/data
# networks:
# - backend
networks:
backend:
volumes:
postgres-data: