forked from Netflix/metaflow-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 1014 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
version: "3"
services:
metadata:
image: "metadata_service:latest"
restart: always
container_name: "metadata_service"
ports:
- "${MF_MIGRATION_PORT:-8082}:${MF_MIGRATION_PORT:-8082}"
- "${MF_METADATA_PORT:-8080}:${MF_METADATA_PORT:-8080}"
volumes:
- .:/code
environment:
- MF_METADATA_DB_HOST=db
- MF_METADATA_DB_PORT=5432
- MF_METADATA_DB_USER=postgres
- MF_METADATA_DB_PSWD=postgres
- MF_METADATA_DB_NAME=postgres
- MF_MIGRATION_ENDPOINTS_ENABLED=1
- MF_METADATA_PORT=${MF_METADATA_PORT:-8080}
- MF_METADATA_HOST=${MF_METADATA_HOST:-0.0.0.0}
- MF_MIGRATION_PORT=${MF_MIGRATION_PORT:-8082}
links:
- db
db:
image: "postgres:11"
restart: always
container_name: "my_postgres"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- my_dbdata:/var/lib/postgresql/data2
volumes:
my_dbdata: