-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (52 loc) · 1.05 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
54
55
56
services:
hackhub-api-poc:
container_name: hackhub-api-poc
build:
context: .
volumes:
- .:/app
- /app/node_modules
ports:
- "7000:7000"
env_file:
- .env
depends_on:
- postgres
networks:
- mynetwork
postgres:
container_name: postgres
image: postgres:latest
env_file:
- .env
ports:
- "5432:5432"
networks:
- mynetwork
volumes:
- postgres_data:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
env_file:
- .env
environment:
- PGADMIN_LISTEN_PORT=80
- PGADMIN_CONFIG_SERVER_MODE=False
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
networks:
- mynetwork
tty: true
ports:
- "5050:80"
volumes:
- pgadmin_data:/var/lib/pgadmin
depends_on:
- postgres
networks:
mynetwork:
volumes:
postgres_data:
pgadmin_data: