-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (33 loc) · 848 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (33 loc) · 848 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: "2.1"
services:
infrastructure-db:
image: healthcheck/postgres:alpine
volumes: ["infrastructure-db-data:/var/lib/postgresql/data"]
networks: [backing-services-network]
ports: ["5432:5432"]
environment:
POSTGRES_DB: spel
POSTGRES_USER: spel
POSTGRES_PASSWORD: spel
app:
extends:
file: ./compose/docker-compose-base.yml
service: microservice
depends_on: [infrastructure-db]
environment:
DATABASE_HOST: infrastructure-db
networks:
- backing-services-network
- public-network
ports: ["8080:8080"]
volumes:
- "app-data:/var/app"
- "./app/build/libs/app-0.0.1.jar:/var/app/app.jar:ro"
networks:
backing-services-network:
driver: bridge
public-network:
driver: bridge
volumes:
infrastructure-db-data: {}
app-data: {}