forked from MarquezProject/marquez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 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
version: "3.7"
services:
api:
image: "marquezproject/marquez:${TAG}"
container_name: marquez-api
environment:
- MARQUEZ_PORT=${API_PORT}
- MARQUEZ_ADMIN_PORT=${API_ADMIN_PORT}
- POSTGRES_HOST=db
- SEARCH_ENABLED=${SEARCH_ENABLED}
ports:
- "${API_PORT}:${API_PORT}"
- "${API_ADMIN_PORT}:${API_ADMIN_PORT}"
volumes:
- data:/opt/marquez
links:
- "db:postgres"
depends_on:
- db
entrypoint: ["/opt/marquez/wait-for-it.sh", "db:${POSTGRES_PORT}", "--", "./entrypoint.sh"]
db:
image: postgres:14
container_name: marquez-db
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- MARQUEZ_DB=marquez
- MARQUEZ_USER=marquez
- MARQUEZ_PASSWORD=marquez
volumes:
- db-conf:/etc/postgresql
- db-init:/docker-entrypoint-initdb.d
- db-backup:/var/lib/postgresql/data
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
# 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:
data:
db-conf:
db-init:
db-backup: