-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1006 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.8'
services:
app:
container_name: app
build:
dockerfile: Dockerfile
context: .
command: make run
depends_on:
- redis
environment:
APP_PORT: '${API_PORT}'
REDIS_HOST: '${REDIS_HOST}'
REDIS_PORT: '${REDIS_PORT}'
REDIS_PASSWORD: '${REDIS_PASSWORD}'
LOG_LEVEL: '${LOG_LEVEL}'
RIDER_API_KEY: '${RIDER_API_KEY}'
CLIENT_API_KEY: '${CLIENT_API_KEY}'
APP_URL: '${APP_URL}'
REDIS_LOCATION_KEY: '${REDIS_LOCATION_KEY}'
ports:
- "${API_PORT:-8080}:8080"
volumes:
- ./:/app
redis:
image: redis:6.2-alpine
restart: always
ports:
- '${REDIS_PORT:-6379}:6379'
environment:
CACHE_SERVICE_PORT: '${REDIS_PORT}'
CACHE_SERVICE_PASSWORD: '${REDIS_PASSWORD}'
command: "redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}"
volumes:
- cache_volume:/data
volumes:
cache_volume:
driver: local
db_volume:
driver: local