-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 963 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 963 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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- .env
ports:
- "5000:5000"
volumes:
# Named volume so data persists regardless of where you run `docker compose` from.
# If you previously used ./data and want to keep it, use: - ./data:/app/data instead.
- refity-data:/app/data
environment:
- PORT=5000
restart: unless-stopped
networks:
default:
aliases:
- refity-backend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8080:80"
depends_on:
- backend
environment:
# If you rename the backend service, update this accordingly (example: refity-backend:5000).
# You may set host:port or a full URL; both work.
- BACKEND_UPSTREAM=backend:5000
restart: unless-stopped
volumes:
refity-data: