-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.25 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
services:
pocketbase:
build:
context: ./pocketbase
dockerfile: Dockerfile
volumes:
- ./pocketbase/pb_data:/pb_data
- ./pocketbase/pb_public:/pb_public
- ./pocketbase/pb_migrations:/pb_migrations
restart: unless-stopped
networks:
- app-network
environment:
- TZ=UTC
sveltekit:
image: node:20-alpine
working_dir: /app
command: sh -c "npm ci && npm run dev -- --host 0.0.0.0"
volumes:
- ./app:/app
networks:
- app-network
environment:
- NODE_ENV=development
- VITE_PB_URL=http://localhost:8080/api/pb
- VITE_WS_URL=ws://localhost:8080/ws
- PUBLIC_VERCEL_PB_URL=http://localhost:8080/api/pb
- PUBLIC_VERCEL_WS_URL=ws://localhost:8080/ws
caddy:
image: caddy:2-alpine
container_name: caddy
restart: unless-stopped
ports:
- "8080:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./:/var/log/caddy
depends_on:
- sveltekit
- pocketbase
networks:
- app-network
ws-service:
build:
context: ./ws
dockerfile: Dockerfile
restart: unless-stopped
expose:
- "8080"
networks:
- app-network
networks:
app-network:
driver: bridge