-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
40 lines (35 loc) · 961 Bytes
/
docker-compose.yaml
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
version: '3.4'
services:
frontend:
image: registry.andyi95.com/text-tools/reading-frontend:${APP_VERSION}
build:
context: frontend
dockerfile: stage.Dockerfile
env_file:
- .env
backend:
image: registry.andyi95.com/text-tools/reading-backend:${APP_VERSION}
build: backend
working_dir: /app
env_file:
- .env
depends_on:
- redis
nginx:
image: nginx:1.19.3
volumes:
- ./app/nginx.conf:/etc/nginx/templates/default.conf.template
restart: unless-stopped
depends_on:
- backend
- frontend
env_file:
- .env
redis:
image: redis:6.2-alpine
volumes:
- redis-data:/data
restart: unless-stopped
command: redis-server --maxmemory 134217728 --maxmemory-policy allkeys-lru
volumes:
redis-data: