-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1.09 KB
/
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
version: '3'
services:
web:
container_name: web
build: ./conspecter-web
ports:
- "8080:8080"
depends_on:
- "web-db"
- "repo"
restart: on-failure:1
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://web-db:5432/conspecter
- SPRING_DATASOURCE_USERNAME=server
- SPRING_DATASOURCE_PASSWORD=server
- APP_REPOSITORY-SERVICE_BASE-URL=http://repo:8080/api
web-db:
container_name: web-db
image: "postgres:13.1-alpine"
environment:
- POSTGRES_DB=conspecter
- POSTGRES_USER=server
- POSTGRES_PASSWORD=server
repo:
container_name: repo
build: ./conspecter-repo
# ports:
# - "8095:8080"
depends_on:
- "repo-db"
restart: on-failure:1
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://repo-db:5432/conspecter
- SPRING_DATASOURCE_USERNAME=server
- SPRING_DATASOURCE_PASSWORD=server
repo-db:
container_name: repo-db
image: "postgres:13.1-alpine"
environment:
- POSTGRES_DB=conspecter
- POSTGRES_USER=server
- POSTGRES_PASSWORD=server