-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (81 loc) · 2.09 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
ws-db:
container_name: ws_db
image: postgres:12
environment:
- POSTGRES_DB=${DATABASE_NAME-postgres}
- POSTGRES_USER=${DATABASE_USER-postgres}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD-postgres}
ports:
- "15444:5432"
volumes:
- ./init:/docker-entrypoint-initdb.d
- ./workshop:/opt/workshop:rw
command:
# This command give more precise control over the parameter settings
# Included are loading the pg_stat_statements lib
# as well as autovacuum settings that are designed to make more efficient
# use of the autovacuum processes
# The pg_init mount is still needed to enable the necesary extensions.
- postgres
- -c
- max_connections=1710
- -c
- shared_preload_libraries=pg_stat_statements
- -c
- autovacuum_max_workers=8
- -c
- autovacuum_vacuum_cost_limit=4800
- -c
- autovacuum_vacuum_cost_delay=10
- -c
- idle_in_transaction_session_timeout=30000
- -c
- pg_stat_statements.max=2000
- -c
- pg_stat_statements.save=off
- -c
- pg_stat_statements.track_utility=off
- -c
- track_activity_query_size=2048
- -c
- log_min_error_statement=error
- -c
- log_min_duration_statement=2000
- -c
- track_functions=pl
ws-pgadmin:
container_name: ws_pgAdmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL-postgres}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD-postgres}
ports:
- "${PGADMIN_PORT-8433}:80"
volumes:
- ./pgadmin_servers.json:/pgadmin4/servers.json
links:
- ws-db
depends_on:
- ws-db
ws-grafana:
container_name: ws_grafana
build:
context: grafana
dockerfile: Dockerfile-grafana
ports:
- 3002:3000
links:
- ws-db
depends_on:
- ws-db
ws-python:
container_name: ws_python
build:
context: python
dockerfile: Dockerfile-python3
links:
- ws-db
depends_on:
- ws-db