-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-postgres
More file actions
46 lines (42 loc) · 947 Bytes
/
compose-postgres
File metadata and controls
46 lines (42 loc) · 947 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
39
40
41
42
43
44
45
46
#version: "2"
#services:
# 1_test_postgres:
# container_name: postgres
# image: postgres:10.9
#restart: always
# environment:
# POSTGRES_PASSWORD: root
# volumes:
# - /root/dockerprojet/postgres/data:/var/lib/postgresql/data
# network_mode: brid
# Use postgres/example user/password credentials
version: "2"
services:
db:
image: postgres:10.9
#restart: always
environment:
POSTGRES_PASSWORD: root
volumes:
- ./data_postgres:/var/lib/postgresql/data
network_mode: bridge
# adminer:
# image: adminer
# restart: always
# links:
# - db:db
# ports:
# - 8080:8080
# network_mode: bridge
pgadmin:
image: dpage/pgadmin4
links:
- db:db
environment:
PGADMIN_DEFAULT_EMAIL: user@domain.com
PGADMIN_DEFAULT_PASSWORD: SuperSecret
ports:
- 80:80
volumes:
- ./data_pgadmin:/var/lib/pgadmin
network_mode: bridge