-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 870 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
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: redis_server
ports:
- '6379:6379'
volumes:
- redis_data:/data
restart: unless-stopped
command: ['redis-server', '--appendonly', 'yes']
networks:
- trade-net
trade_api:
container_name: trade_api
build:
context: .
dockerfile: Dockerfile.dev
platform: linux/amd64
command: yarn start:dev
ports:
- '3333:3333'
env_file:
- ./secrets/.env
environment:
- NODE_ENV=dev
- PORT=3333
- REDIS_HOST=redis
- REDIS_PORT=6379
volumes:
- ./:/app/
- trade_api_node_modules:/app/node_modules
depends_on:
- redis
restart: unless-stopped
networks:
- trade-net
networks:
trade-net:
driver: bridge
volumes:
redis_data:
trade_api_node_modules: