-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 822 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (30 loc) · 822 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
services:
postgres:
image: postgres:18
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: sample-db
ports:
- "5432:5432"
restart: unless-stopped
api:
build:
context: .
dockerfile: docker/Dockerfile
container_name: vertx-api
depends_on:
- postgres
command: >
java
-Ddatabase.host=postgres
-Ddatabase.port=5432
-Ddatabase.name=sample-db
-Ddatabase.username=postgres
-Ddatabase.password=postgres
-jar app.jar
image: vertx-kotlin-sample:latest
ports:
- "8080:8080"
restart: unless-stopped