-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.08 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
# For hosting with Traefik. Make sure you already have Traefik configured.
version: '3.7'
services:
sshot:
build: .
depends_on:
- redis
restart: always
environment:
NODE_ENV: production
EXPRESS_PORT: 3000
REDIS_URI: redis
REDIS_PORT: 6379
REDIS_PASSWORD: sOmE_sEcUrE_pAsS
networks:
- default
- proxy
volumes:
- ./images:/cache
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.sshot-secure.entrypoints=websecure"
- "traefik.http.routers.sshot-secure.rule=Host(`sshot.prj.fossian.com`)"
- "traefik.http.routers.sshot-secure.service=sshot-service"
- "traefik.http.services.sshot-service.loadbalancer.server.port=3000"
redis:
image: redis:7
restart: always
command: redis-server --requirepass sOmE_sEcUrE_pAsS
volumes:
- ./redis-data:/var/lib/redis
- ./redis.conf:/usr/local/etc/redis/redis.conf
environment:
REDIS_REPLICATION_MODE: master
networks:
- default
networks:
proxy:
external: true