-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 916 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
name: ogm
services:
ui:
container_name: ogm-ui
restart: always
build:
context: ./ui
depends_on:
- backend
ports:
- "3333:80"
backend:
container_name: ogm-backend
image: docker-spring-boot-postgres:latest
restart: always
build:
context: ./backend
depends_on:
- db
environment:
- SERVER_PORT=36458
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/ogm
- SPRING_DATASOURCE_USERNAME=${OGM_DB_USER}
- SPRING_DATASOURCE_PASSWORD=${OGM_DB_PASSWORD}
ports:
- "36458:36458"
db:
container_name: ogm-db
image: postgres:16-alpine
restart: always
volumes:
- ogm-db-vol:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${OGM_DB_USER}
POSTGRES_PASSWORD: ${OGM_DB_PASSWORD}
POSTGRES_DB: ogm
volumes:
ogm-db-vol:
name: ogm-db-vol