-
Notifications
You must be signed in to change notification settings - Fork 914
/
docker-compose.yml
49 lines (46 loc) · 1.07 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
services:
db:
container_name: db
image: postgres:latest
environment:
POSTGRES_DB: northwind
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgresql_bin:/usr/lib/postgresql
- postgresql_data:/var/lib/postgresql/data
- ./northwind.sql:/docker-entrypoint-initdb.d/northwind.sql
- ./files:/files
ports:
- 55432:5432
networks:
- db
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: postgres
PGADMIN_LISTEN_PORT: 5050
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- postgresql_bin:/usr/lib/postgresql
- pgadmin_root_prefs:/root/.pgadmin
- pgadmin_working_dir:/var/lib/pgadmin
- ./files:/files
ports:
- 5050:5050
networks:
- db
networks:
db:
driver: bridge
volumes:
pgadmin_root_prefs:
driver: local
pgadmin_working_dir:
driver: local
postgresql_data:
driver: local
postgresql_bin:
driver: local