-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yaml
More file actions
62 lines (58 loc) · 1.19 KB
/
docker-compose-dev.yaml
File metadata and controls
62 lines (58 loc) · 1.19 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
53
54
55
56
57
58
59
60
61
62
version: "3.8"
services:
nginx:
image: ghcr.io/cssnr/docker-nginx-proxy:latest
environment:
SERVICE_NAME: "app"
SERVICE_PORT: "3000"
GZIP_TYPES: "text/html image/svg+xml"
deploy:
replicas: 1
resources:
limits:
cpus: "1.0"
memory: 64M
depends_on:
- app
ports:
- "${PORT:-80}:80"
app:
build:
context: .
image: node-badges:latest
command: "npm run dev"
env_file: ${SETTINGS:-settings.env.example}
environment:
DEBUG: "app:*"
deploy:
replicas: 1
resources:
limits:
cpus: "2.0"
memory: 256M
depends_on:
- redis
#volumes:
# - ${APP_FILES:-./src}:/app/src
develop:
watch:
- action: sync
path: ./src
target: /app/src
- action: rebuild
path: ./package-lock.json
- action: rebuild
path: ./docker-compose-dev.yaml
redis:
image: redis:6-alpine
command: "redis-server --appendonly yes"
deploy:
replicas: 1
resources:
limits:
cpus: "1.0"
memory: 64M
volumes:
- redis_data:/data
volumes:
redis_data: