-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompose.yaml
More file actions
46 lines (45 loc) · 863 Bytes
/
Compose.yaml
File metadata and controls
46 lines (45 loc) · 863 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
services:
db:
image: postgres
container_name: local_pgdb
ports:
- "5432:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
volumes:
- postgres:/var/lib/postgresql/data
networks:
- postgres
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4_container
ports:
- "8000:80"
volumes:
- pgadmin:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: root@admin.com
PGADMIN_DEFAULT_PASSWORD: password
depends_on:
- db
networks:
- postgres
backup:
image: backup:1
# environment:
# - TZ: Asia/Kolkata
env_file:
- prod.env
# entrypoint: ["./entry.sh"]
volumes:
- ./backup:/backup
networks:
- postgres
depends_on:
- db
volumes:
pgadmin:
postgres:
networks:
postgres: