-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.31 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
50
51
52
53
version: '2'
services:
db:
# comment on build if you want to use the dockerhub build
build:
context: .
dockerfile: Dockerfile
image: sioseinnova/pg_siose_bench:test
container_name: pg_siose-bench
ports:
- "5433:5432" # redirect to 5433 in case you already have postgres installed
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
# POSTGRES_DB: lm
# PGDATA: /postgresql/data
# command: postgres -c search_path='public,lm'
volumes: # named volumes, use compose -v to remove them.
- postgres_data:/postgresql/data:rw
- postgres_backups:/postgresql/backups
networks:
- backend
restart: unless-stopped
pgadmin:
image: fenglc/pgadmin4:latest
container_name: pgadmin
links:
- db
volumes:
# - ./.pgadmin4:/var/lib/pgadmin4/data # pgadmin4 user and session data (SQLITE)
- .:/var/lib/pgadmin4/data/storage/pgadmin4
ports:
- "5050:5050"
environment:
DEFAULT_USER: [email protected]
DEFAULT_PASSWORD: admin
networks:
- backend
depends_on:
- db
restart: unless-stopped
volumes: # named volumes that can be mounted by other containers
postgres_data:
driver: local
postgres_backups:
driver: local
networks:
backend:
driver: bridge