-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 860 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
version: '3.3'
services:
redis-server:
image: redis
container_name: redis-server
ports:
- '6380:6380'
volumes:
- ./redis-service/config/redis.conf:/redis.conf
command: --port 6380
expose:
- '6380'
# command: ['redis-server', '/redis.conf']
otpwa:
build:
context: ./
dockerfile: ./Dockerfile
image: kodingworks/otpwa:latest
environment:
- TZ=${TZ}
- PORT=${PORT}
- ENCRYPTION_ALGORITHM=sha256
- ENCRYPTION_SECRET=${ENCRYPTION_SECRET}
- TOKEN=${TOKEN}
- REDIS_TTL=604800 # Default 7 Days
- REDIS_HOST=redis-server
- REDIS_PORT=6380
ports:
- '3000:3000' # expose-to-the-world : only-in-the-docker
container_name: otpwa
# depends_on:
# -
volumes:
- ./:/otpwa
- ./:/node_modules
volumes:
redis-data: