-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
55 lines (55 loc) · 1.09 KB
/
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
services:
recruitment-task:
container_name: recruitment-task
build:
context: .
dockerfile: Dockerfile
target: workspace
volumes:
- .:/usr/src/app
- node-modules:/usr/src/app/node_modules
ports:
- 3000:3000
- 5433:5433
env_file:
- .env
networks:
- app-network
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=fullstack-recruitment-task-2024
volumes:
- db-data:/var/lib/postgresql/data
ports:
- '5432:5432'
networks:
- app-network
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
volumes:
- pgadmin-data:/pgadmin4
- pgadmin-lib:/var/lib/pgadmin
ports:
- '8001:80'
depends_on:
- db
logging:
driver: none
profiles:
- development
networks:
- app-network
networks:
app-network:
volumes:
node-modules:
db-data:
pgadmin-data:
pgadmin-lib: