forked from MarquezProject/marquez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.25 KB
/
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
48
49
50
51
version: "3.7"
services:
api:
image: "marquezproject/marquez:${TAG}"
container_name: marquez-api
environment:
- MARQUEZ_PORT=${API_PORT}
- MARQUEZ_ADMIN_PORT=${API_ADMIN_PORT}
ports:
- "${API_PORT}:${API_PORT}"
- "${API_ADMIN_PORT}:${API_ADMIN_PORT}"
volumes:
- utils:/opt/marquez
links:
- "db:postgres"
depends_on:
- db
entrypoint: ["/opt/marquez/wait-for-it.sh", "db:5432", "--", "./entrypoint.sh"]
web:
image: "marquezproject/marquez-web:${TAG}"
container_name: marquez-web
environment:
- MARQUEZ_HOST=api
- MARQUEZ_PORT=${API_PORT}
ports:
- "${WEB_PORT}:${WEB_PORT}"
stdin_open: true
tty: true
depends_on:
- api
db:
image: postgres:12.1
container_name: marquez-db
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- MARQUEZ_DB=marquez
- MARQUEZ_USER=marquez
- MARQUEZ_PASSWORD=marquez
volumes:
- db-init:/docker-entrypoint-initdb.d
# Enables SQL statement logging (see: https://www.postgresql.org/docs/12/runtime-config-logging.html#GUC-LOG-STATEMENT)
# command: ["postgres", "-c", "log_statement=all"]
volumes:
utils:
db-init: