-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
132 lines (127 loc) · 3.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
132 lines (127 loc) · 3.08 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
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:
wms:
backend:
depends_on:
- db
build:
target: $COMPOSE_TARGET
context: .
dockerfile: ./backend/Dockerfile
restart: unless-stopped
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: rebuild
path: ./backend/package.json
networks:
wms:
userui:
build:
target: $COMPOSE_TARGET
context: .
dockerfile: ./userui/Dockerfile
restart: unless-stopped
env_file: .env
environment:
- NEXT_ALLOWED_DEV_ORIGIN=https://wildmanstack.localhost
volumes:
- userui:/workspace/userui/.next/static
- userui:/workspace/userui/public
ports:
- "127.0.0.1:3002:80"
develop:
watch:
- action: sync
path: ./userui/app
target: /workspace/userui/app
initial_sync: true
- action: sync
path: ./userui/public/
target: /workspace/userui/public
- action: sync
path: ./userui/lib
target: /workspace/userui/lib
initial_sync: true
- action: sync+restart
path: ./userui/next.config.ts
target: /workspace/userui/app/next.config.ts
initial_sync: true
- action: sync+restart
path: ./.env
target: /workspace/userui/app/.env
initial_sync: true
- action: rebuild
path: ./userui/package.json
networks:
wms:
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
volumes:
- caddy_data:/data
- caddy_config:/config
- userui:/srv/.next/static
- userui:/srv/public/
depends_on:
userui:
condition: service_healthy
backend:
condition: service_healthy
networks:
wms:
aliases:
- wildmanstack.localhost
volumes:
db:
caddy_data:
caddy_config:
userui:
networks:
wms:
driver: bridge
driver_opts:
enable_ipv4: "true"
enable_ipv6: "false"
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"