-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (47 loc) · 1.01 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
49 lines (47 loc) · 1.01 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
43
44
45
46
47
48
49
version: "3.9"
services:
postgres:
container_name: sql
image: postgres
environment:
POSTGRES_DB: "library"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "12345"
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U habrpguser -d habrdb"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
deploy:
resources:
limits:
cpus: '1'
memory: 4G
networks:
- postgres
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "habrpguser@habr.com"
PGADMIN_DEFAULT_PASSWORD: "pgadminpwd4habr"
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- ./pgadmin:/var/lib/pgadmin
ports:
- "5050:80"
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.5'
memory: 1G
networks:
- postgres
networks:
postgres:
driver: bridge