-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
52 lines (49 loc) · 1.05 KB
/
docker-compose.dev.yml
File metadata and controls
52 lines (49 loc) · 1.05 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
## Development: build from source
## Usage:
## docker compose -f docker-compose.dev.yml up -d --build
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:
build:
context: .
dockerfile: Dockerfile.backend
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:
build:
context: .
dockerfile: Dockerfile.web
args:
APP_HOSTNAME: ${APP_HOSTNAME:-1time.io}
SHOW_BLOG: ${SHOW_BLOG:-false}
restart: unless-stopped
environment:
APP_HOSTNAME: ${APP_HOSTNAME:-1time.io}
NGINX_PORT: 8080
depends_on:
- backend
ports:
- "${APP_PORT:-8080}:8080"