-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (47 loc) · 1.04 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
services:
db:
image: postgres:16
restart: always
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
- ./mockup-data.sql:/docker-entrypoint-initdb.d/data.sql
- ./backup:/var/backup
node:
image: "node:22"
restart: always
user: "node"
working_dir: /home/node/app
volumes:
- ./:/home/node/app
expose:
- "8081"
ports:
- "8001:8081"
env_file:
- .env
environment:
- NODE_ENV=development
command: "bash ./startDevForDockerCompose.sh"
depends_on:
- db
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4_container
restart: always
ports:
- "8002:8082"
env_file:
- .env
environment:
- PGADMIN_LISTEN_PORT=8082
- PGADMIN_CONFIG_SERVER_MODE=False
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
- PGADMIN_DEFAULT_PASSWORD=badgehub
volumes:
- pgadmin_data:/var/lib/pgadmin
- ./servers.json:/pgadmin4/servers.json
volumes:
postgres_data:
pgadmin_data: