-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.build.yml
More file actions
42 lines (40 loc) · 1.23 KB
/
docker-compose.build.yml
File metadata and controls
42 lines (40 loc) · 1.23 KB
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
services:
database:
shm_size: 128mb
environment:
DTOCEAN_DB_EXAMPLES_NAME: ${DTOCEAN_DB_EXAMPLES_NAME:-dtocean_examples}
DTOCEAN_DB_TEMPLATE_NAME: ${DTOCEAN_DB_TEMPLATE_NAME:-dtocean_template}
DTOCEAN_DB_VERSION: ${DTOCEAN_DB_VERSION}
DTOCEAN_USER_NAME: ${DTOCEAN_USER_NAME:-dtocean_user}
DTOCEAN_USER_PASSWORD: ${DTOCEAN_USER_PASSWORD:?}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?}
ports:
- ${POSTGRES_PORT:-5432}:5432
pgadmin:
environment:
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: ${DTOCEAN_USER_PASSWORD:?}
ports:
- ${PGADMIN_PORT:-8080}:80
configs:
- source: servers.json
target: /pgadmin4/servers.json
- source: pgpass
target: /pgpass
configs:
pgpass:
content: "db:5432:*:postgres:${POSTGRES_PASSWORD:?}"
servers.json:
content: |
{"Servers": {"1": {
"Group": "Servers",
"Name": "dtocean",
"Host": "database",
"Port": 5432,
"MaintenanceDB": "postgres",
"Username": "postgres",
"PassFile": "/pgpass",
"SSLMode": "prefer"
}}}