-
Notifications
You must be signed in to change notification settings - Fork 311
/
docker-compose.yml
35 lines (34 loc) · 1.13 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
version: "3"
volumes:
pgdata:
services:
pagila:
image: postgres:17
container_name: pagila
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: postgres
volumes:
- ./pagila-schema.sql:/docker-entrypoint-initdb.d/1-pagila-schema.sql
- ./pagila-schema-jsonb.sql:/docker-entrypoint-initdb.d/1-pagila-schema-jsonb.sql
- ./pagila-data.sql:/docker-entrypoint-initdb.d/2-pagila-data.sql
- ./restore-pagila-data-jsonb.sh:/docker-entrypoint-initdb.d/3-restore-pagila-data-jsonb.sh
- ./pagila-data-yum-jsonb.backup:/docker-entrypoint-initdb.d/pagila-data-yum-jsonb.backup
- ./pagila-data-apt-jsonb.backup:/docker-entrypoint-initdb.d/pagila-data-apt-jsonb.backup
- pgdata:/var/lib/postgresql/data
expose:
- 5432
ports:
- 5432:5432
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
volumes:
- "./pgadmin/pgadmin_servers.json:/pgadmin4/servers.json"
- "./pgadmin/pgadmin_pass:/pgadmin4/pass"
ports:
- "5050:80"