-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.06 KB
/
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
44
45
46
version: '3.4'
services:
server:
build:
context: './server'
dockerfile: 'Dockerfile'
container_name: 'openwb_server'
restart: unless-stopped
networks:
- internal
depends_on:
- redisDB
environment:
REDISDB_URL: 'redis://redisDB:6379'
env_file:
- ./.env
nginx:
build:
context: './nginx'
dockerfile: 'Dockerfile'
container_name: 'openwb_nginx'
restart: unless-stopped
volumes:
- ./certs:/etc/ssl/
ports:
- 3000:3000
networks:
- internal
redisDB:
image: redis:7-alpine
container_name: openwb_redis
command: redis-server --save 60 1 --loglevel warning
restart: always
# For debugging
ports:
- 6379:6379
networks:
- internal
volumes:
- redisDB:/data
networks:
internal:
volumes:
redisDB:
external: true
name: redis