-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-maven.yaml
38 lines (38 loc) · 1.05 KB
/
docker-compose-maven.yaml
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:
postgres:
image: postgres:9.4-alpine
environment:
POSTGRES_DB: db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports: ['5432:5432']
volumes: ['./src/main/resources/scheme.sql:/docker-entrypoint-initdb.d/10-init.sql']
healthcheck:
test: pg_isready --host=127.0.0.1 --port=5432 --dbname=$$POSTGRES_DB --username=$$POSTGRES_USER
timeout: 3s
retries: 33
interval: 30s
#restart: unless-stopped
#mem_limit: 786432000 # container limit: 700Mb (700 * 1024 * 1024)
networks:
backing-services:
aliases:
- p
- pg
- db
- postgres
# maven-r2dbc-example-app:
# build:
# context: .
# dockerfile: .mvn/Dockerfile
# volumes: ["maven-r2dbc-example-app-data:/home/appuser"]
# ports: ["8080:8080"]
# networks: [backing-services]
# #restart: unless-stopped
# #mem_limit: 786432000 # container limit: 700Mb (700 * 1024 * 1024)
#volumes:
# maven-r2dbc-example-app-data: {}
networks:
backing-services:
driver: bridge