-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 791 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 791 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
version: "3.8"
services:
postgres:
image: postgres
container_name: workopia_postgres_container
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mustafa
- POSTGRES_DB=workopia
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
restart: always
container_name: workopia_pgadmin_container
environment:
- PGADMIN_DEFAULT_EMAIL=admin@admin.com
- PGADMIN_DEFAULT_PASSWORD=admin
depends_on:
- postgres
ports:
- "5050:80"
volumes:
- pgadmin:/var/lib/pgadmin
volumes:
postgres:
pgadmin: