-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.04 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
## Deploy with pre-built images from GHCR (no build required)
## Usage:
## cp .env.example .env
## # Edit .env: set APP_HOSTNAME to your domain
## docker compose up -d
services:
redis:
image: redis:7-alpine
restart: unless-stopped
command:
- redis-server
- --save
- "60"
- "1"
- --appendonly
- "no"
- --dir
- /data
- --dbfilename
- dump.rdb
volumes:
- ${DATA_DIR:-./data}:/data
backend:
image: ghcr.io/shingrus/1time-backend:latest
restart: unless-stopped
environment:
LISTEN_ADDR: 0.0.0.0:8080
REDISHOST: redis:6379
REDISPASS: ""
FILE_STORAGE_DIR: /data/files
volumes:
- ${DATA_DIR:-./data}:/data
depends_on:
- redis
web:
image: ghcr.io/shingrus/1time-web:latest
restart: unless-stopped
environment:
APP_HOSTNAME: ${APP_HOSTNAME:-1time.io}
NGINX_PORT: 8080
BACKEND_UPSTREAM: ${BACKEND_UPSTREAM:-backend:8080}
depends_on:
- backend
ports:
- "${APP_PORT:-8080}:8080"