-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 1.06 KB
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
networks:
randimi-network:
services:
randimi-db:
image: postgres:16-alpine
container_name: randimi-db
restart: on-failure
networks:
- randimi-network
environment:
# Has to match the datasource settings of the randimi container
- POSTGRES_DB=${PG_DATABASE}
- POSTGRES_USER=${PG_USERNAME}
- POSTGRES_PASSWORD=${PG_PASSWORD}
volumes:
- ${PG_DATA_PATH}:/var/lib/postgresql
randimi-app:
image: ghcr.io/imi-ms/randimi:${RANDIMI_IMAGE_TAG}
container_name: randimi-app
restart: on-failure:3
ports:
- "127.0.0.1:8080:8080"
networks:
- randimi-network
environment:
# Datasource has to match with the configuration of the cinnamon-db container
SPRING_DATASOURCE_PASSWORD: ${PG_PASSWORD}
SPRING_DATASOURCE_URL: jdbc:postgresql://randimi-db:5432/${PG_DATABASE}
SPRING.DATASOURCE.USERNAME: ${PG_USERNAME}
depends_on:
- randimi-db