-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (47 loc) · 971 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
48 lines (47 loc) · 971 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
47
48
version: "3.7"
services:
app:
build: .
ports:
- "5000:5000"
env_file: .env
depends_on:
- db
- pgadmin
db:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: fastify
PGDATA: /var/lib/postgersql/data
volumes:
- ./postgresData:/var/lib/postgersql/data
ports:
- "5432:5432"
networks:
- postgres
restart: unless-stopped
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: parhamkhoram58@gmail.com
PGADMIN_DEFAULT_PASSWORD: 1111
PGADMIN_CONFIG_SERVER_MODE: "False"
ports:
- 5050:80
volumes:
- ./pgadmin:/var/lib/pgadmin
networks:
- postgres
restart: unless-stopped
networks:
postgres:
driver: bridge
volumes:
postgresData:
driver: local
pgadmin:
driver: bridge