-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (32 loc) · 962 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (32 loc) · 962 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
services:
credit-card-service:
image: wiremock/wiremock:3.3.1-1
volumes:
- ./wiremock:/home/wiremock
online-shop-database:
image: postgres:16.1
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=P@55w0rd
online-shop-migration:
image: flyway/flyway:10.10
command: -url=jdbc:postgresql://online-shop-database:5432/postgres -user=postgres -password=P@55w0rd -connectRetries=60 migrate
volumes:
- ./online-shop/src/main/resources/db:/flyway/sql
depends_on:
- online-shop-database
online-shop:
build: online-shop/
ports:
- "80:8080"
environment:
- EXTERNAL_URL=http://localhost
- JAKARTA_PERSISTENCE_JDBC_URL=jdbc:postgresql://online-shop-database:5432/postgres
- JAKARTA_PERSISTENCE_JDBC_USER=postgres
- JAKARTA_PERSISTENCE_JDBC_PASSWORD=P@55w0rd
adminer:
image: adminer:4.8.1-standalone
restart: always
ports:
- 8080:8080