-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 983 Bytes
/
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
43
44
45
46
47
version: "3"
services:
application:
build:
context: ./
dockerfile: docker/application/Dockerfile
container_name: application
environment:
JAVA_OPTS: -Dspring.profiles.active=dev
links:
- postgres
- postgres-test
volumes:
- ./api/build/libs/rest-api-advanced.jar:/app/rest-api-advanced.jar
ports:
- 8080:8080
postgres:
container_name: postgres
image: postgres:13.1-alpine
environment:
- POSTGRES_PASSWORD=rest
- POSTGRES_USER=rest
- POSTGRES_DB=rest
- PGDATA=/pg-data
ports:
- 54321:5432
volumes:
- pg-data:/pg-data
postgres-test:
container_name: postgres-test
image: postgres:13.1-alpine
environment:
- POSTGRES_PASSWORD=rest-test
- POSTGRES_USER=rest-test
- POSTGRES_DB=rest-test
- PGDATA=/pg-data-test
ports:
- 54322:5432
volumes:
- pg-data-test:/pg-data-test
volumes:
pg-data:
pg-data-test: