-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
38 lines (36 loc) · 903 Bytes
/
docker-compose.yaml
File metadata and controls
38 lines (36 loc) · 903 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
32
33
34
35
36
37
38
services:
metabase:
image: metabase/metabase:latest
container_name: metabasees
hostname: metabase
volumes:
- ./metabase:/data/metabase
ports:
- 3080:3000
networks:
- metanet1
healthcheck:
test: curl --fail -I http://localhost:3080/api/health || exit 1
interval: 15s
timeout: 5s
retries: 5
postgres:
image: postgres:latest
container_name: postgres_container
hostname: postgresees
environment:
POSTGRES_USER: arthur
POSTGRES_PASSWORD: 146a
POSTGRES_DB: db_arthur
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C"
ports:
- "5430:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data/pgdata
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- metanet1
networks:
metanet1:
driver: bridge