-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (48 loc) · 981 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
54 lines (48 loc) · 981 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
volumes:
redis-data: {}
networks:
backend:
services:
redis:
image: redis
container_name: redis
ports:
- ${REDIS_PORT}:${REDIS_PORT}
expose:
- ${REDIS_PORT}
volumes:
- type: volume
source: redis-data
target: /data
restart: always
networks:
- backend
proxy:
build:
context: ./proxy
dockerfile: Dockerfile
container_name: proxy
ports:
- ${PROXY_PORT}:${PROXY_PORT}
environment:
REDIS_PORT: ${REDIS_PORT}
PROXY_PORT: ${PROXY_PORT}
CACHE_CAPACITY: ${CACHE_CAPACITY}
CACHE_EXPIRY_TIME: ${CACHE_EXPIRY_TIME}
depends_on:
- redis
networks:
- backend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend
ports:
- ${FRONT_APP_PORT}:${FRONT_APP_PORT}
environment:
NODE_ENV: production
PROXY_PORT: ${PROXY_PORT}
depends_on:
- proxy