-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
40 lines (36 loc) · 891 Bytes
/
compose.yaml
File metadata and controls
40 lines (36 loc) · 891 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
version: '3'
services:
db:
image: 'postgres:12'
container_name: 'cablecash-db'
environment:
- 'POSTGRES_DB=CableCashDB'
- 'POSTGRES_PASSWORD=postgres'
- 'POSTGRES_USER=postgres'
volumes:
- 'cablecash-data:/var/lib/postgresql/data'
ports:
- '5456:5432'
test:
image: 'postgres:12'
container_name: 'cablecash-db-test'
environment:
- 'POSTGRES_DB=CableCashDB'
- 'POSTGRES_PASSWORD=test'
- 'POSTGRES_USER=test'
ports:
- '5455:5432'
app:
build: .
container_name: 'cablecash-api'
depends_on:
- 'db'
environment:
- 'SPRING_PROFILES_ACTIVE=prod'
- 'SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5456/CableCashDB'
- 'SPRING_DATASOURCE_USERNAME=postgres'
- 'SPRING_DATASOURCE_PASSWORD=postgres'
ports:
- "8080:8080"
volumes:
cablecash-data: