-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (47 loc) · 1.04 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
47
48
49
version: '3'
services:
api:
container_name: thaqalayn-api
image: lovemonge3r3/thaqalayn-api:latest
restart: always
networks:
- apinetwork
environment:
MONGODB_URI: ${MONGODB_URI}
PORT: ${PORT}
CACHE: ${CACHE}
REDIS_URL: ${REDIS_URL}
depends_on:
- redis
caddy:
container_name: caddy
image: caddy
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./API/deploy/Caddyfile:/etc/caddy/Caddyfile
- ./API/deploy/caddy_data:/data
networks:
- apinetwork
labels:
- "com.centurylinklabs.watchtower.enable=false"
watchtower:
container_name: watchtower
image: containrrr/watchtower
restart: always
volumes:
- /root/.docker/config.json:/config.json
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30
redis:
container_name: redis
image: redis/redis-stack-server
restart: no
networks:
- apinetwork
labels:
- "com.centurylinklabs.watchtower.enable=false"
networks:
apinetwork: