-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
48 lines (44 loc) · 1014 Bytes
/
docker-compose.dev.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
version: '3'
services:
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "${APP_PORT:-3000}:80"
environment:
APP_HOST: ":80"
depends_on:
- frontend
- api
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:z
- caddy-data:/data
frontend:
build:
context: ./front-ui
dockerfile: Dockerfile.dev
restart: unless-stopped
environment:
- PORT=3000
- HOST=0.0.0.0
- SSR_BASE_URL=http://api:3000/
- BROWSER_BASE_URL=http://${APP_HOST:-localhost}:${APP_PORT:-3000}/api/v1
volumes:
- ./front-ui:/app:z
api:
build: ./central-api
restart: unless-stopped
environment:
- PORT=3000
- HOST=0.0.0.0
- DB_URL=/data/riptide.db
- BASE_URL=http://${APP_HOST:-localhost}:${APP_PORT:-3000}/api/v1
- REQUEST_TIMEOUT
- AUTH_TIMEOUT
- PING_INTERVAL
- SERVER_PASS
volumes:
- sqlite-db-data:/data
volumes:
sqlite-db-data:
caddy-data: