forked from aleksey-lukyanets/market
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
38 lines (38 loc) · 1.05 KB
/
docker-compose.yaml
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
version: '3'
services:
db:
container_name: db
image: postgres:9.6
ports:
- 5432:5432
environment:
- POSTGRES_DB=market
- POSTGRES_USER=market
- POSTGRES_PASSWORD=market
volumes:
- ./market-core/src/main/resources/schema.sql:/docker-entrypoint-initdb.d/1_schema.sql
- ./market-core/src/main/resources/data.sql:/docker-entrypoint-initdb.d/2_data.sql
- postgres-data:/var/lib/postgresql/data
market-web:
container_name: market-web
image: alukyanets/market-web
depends_on:
- db
ports:
- 8080:8080
environment:
- SPRING_PROFILES_ACTIVE=prod
- DB_HOST=db
market-rest:
container_name: market-rest
image: alukyanets/market-rest
depends_on:
- db
ports:
- 8081:8081
environment:
- SPRING_PROFILES_ACTIVE=prod
- DB_HOST=db
volumes:
postgres-data:
driver: local