-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (41 loc) · 992 Bytes
/
docker-compose.yml
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
version: "3.5"
services:
####################### Frontend #######################
frontend:
stdin_open: true
tty: true
restart: on-failure:1
container_name: inventory-lookup-frontend
build:
context: frontend
volumes:
- ./frontend/src:/usr/app/src
- ./frontend/public:/usr/app/public
- frontend-node-cache:/usr/app/node_modules
env_file: ./frontend/.env
ports:
- "3000:3000"
####################### API #######################
redis:
image: redis
container_name: inventory-lookup-cache
hostname: redis
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "yes"]
api:
restart: on-failure:1
depends_on:
- redis
environment:
- REDIS_URL=redis://cache
container_name: inventory-lookup-api
build:
context: api
env_file:
- api/.env
ports:
- "4000:4000"
volumes:
frontend-node-cache:
name: il-frontend-node-cache