This repository was archived by the owner on Sep 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (61 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
79 lines (61 loc) · 1.53 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.8'
services:
db:
container_name: postgresql_db
image: postgres
restart: always
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: sdpDb
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
networks:
app_net:
ipv4_address: 192.168.0.2
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
depends_on:
- db
restart: always
volumes:
- ./data/pgadmin-data:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: root@root.com
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
networks:
app_net:
ipv4_address: 192.168.0.3
prisma-app:
container_name: prisma-api
build: ./
restart: always
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgresql://root:root@192.168.0.2:5432/sdpDb
PORT: 8000
ACCESS_TOKEN_SECRET: "9bfa611c626259efd6491440db1b97081e5c851a1fca53daff8182b191e0180c322d472113f5e0b71bebbeee83b2378cf346576184e2ee5dbe22d2faab8c08f7"
ports:
- '8000:8000'
networks:
app_net:
ipv4_address: 192.168.0.4
networks:
app_net:
ipam:
driver: default
config:
- subnet: "192.168.0.0/24"
gateway: 192.168.0.1