-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
140 lines (134 loc) · 3.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
140 lines (134 loc) · 3.04 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
services:
db:
image: postgres:18.3-alpine3.23
restart: unless-stopped
env_file: .env
environment:
- POSTGRES_PASSWORD=$DB_PASSWORD
- POSTGRES_DB=$DB_NAME
- POSTGRES_USER=$DB_USER
ports:
- "127.0.0.1:$DB_PORT:$DB_PORT"
volumes:
- db:/var/lib/postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER"]
interval: 30s
timeout: 30s
retries: 5
start_period: 90s
networks:
kaybee:
backend:
depends_on:
- db
build:
target: $COMPOSE_TARGET
context: .
dockerfile: ./backend/Dockerfile
restart: no
env_file: .env
ports:
- "127.0.0.1:3000:80"
- "127.0.0.1:9229:9229" # Debugging port
volumes:
- ./backend/drizzle/:/workspace/backend/drizzle
develop:
watch:
- action: sync+restart
path: ./backend/src
target: /workspace/backend/src
initial_sync: true
ignore:
- node_modules/
- action: sync+restart
path: ./shared
target: /workspace/shared
initial_sync: true
ignore:
- node_modules/
- action: rebuild
path: ./backend/package.json
networks:
kaybee:
auth:
build:
target: $COMPOSE_TARGET
context: .
dockerfile: ./auth/Dockerfile
restart: unless-stopped
env_file: .env
ports:
- "127.0.0.1:3001:80"
develop:
watch:
- action: sync
path: ./auth
target: /workspace/auth
depends_on:
db:
condition: service_healthy
networks:
kaybee:
userui:
build:
target: $COMPOSE_TARGET
context: .
dockerfile: ./userui/Dockerfile
restart: unless-stopped
env_file: .env
ports:
- "127.0.0.1:3002:80"
develop:
watch:
- action: sync
path: ./userui/app
target: /workspace/userui/app
initial_sync: true
- action: sync+restart
path: ./userui/next.config.ts
target: /workspace/userui/app/next.config.ts
initial_sync: true
networks:
kaybee:
ingress:
build:
context: .
dockerfile: ./ingress/Dockerfile
restart: unless-stopped
env_file: .env
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
- "127.0.0.1:443:443/udp"
develop:
watch:
- action: sync+restart
path: ./ingress/config/Caddyfile
target: /etc/caddy/Caddyfile
- action: sync
path: ./userui/public/
target: /srv/
volumes:
- caddy_data:/data
- caddy_config:/config
depends_on:
auth:
condition: service_healthy
backend:
condition: service_healthy
networks:
kaybee:
aliases:
- kaybee.local
volumes:
db:
caddy_data:
caddy_config:
networks:
kaybee:
driver: bridge
driver_opts:
enable_ipv4: "true"
enable_ipv6: "false"
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"