-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1016 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (42 loc) · 1016 Bytes
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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
expose:
- "3000"
volumes:
# Persists the SQLite database file on the host
- sqlite_data:/usr/app/data
- ./vapid_private.pem:/usr/app/vapid_private.pem:ro
environment:
- DATABASE_URL=sqlite:///usr/app/data/app.db
- APP_PORT=3000
- APP_HOST=0.0.0.0
- VAPID_PRIVATE_KEY_FILE=/usr/app/vapid_private.pem
- RUST_LOG=info
restart: always
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
PUBLIC_VAPID_KEY: ${PUBLIC_VAPID_KEY}
expose:
- "80"
# ports:
# - "80:80"
environment:
- API_URL=http://backend:8080
depends_on:
- backend
restart: always
cloudflared:
image: cloudflare/cloudflared:latest
restart: always
command: tunnel --no-autoupdate --protocol quic run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TOKEN}
volumes:
sqlite_data: