-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 804 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 804 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
version: '3'
services:
library-postgres:
image: "postgres:9.6-alpine"
container_name: library-postgres
volumes:
- library-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=library
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=celal371
library-app:
build: ./Library-Application
container_name: library-app
environment:
- DB_SERVER=library-postgres
- POSTGRES_DB=library
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=celal371
- spring.profiles.active=docker
ports:
- "8182:8182"
links:
- library-postgres
library-ui:
build: ./library-webui
container_name: library-ui
ports:
- "3030:80"
links:
- library-app
volumes:
library-data: