-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.22 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.6'
services:
app:
build:
context: .
dockerfile: Dockerfile
image: sonarsoftware/customerportal:next
container_name: sonar-customerportal
restart: always
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./public/assets/img/logo.png:/var/www/html/public/assets/img/logo.png
- ./public/assets/img/cover.png:/var/www/html/public/assets/img/cover.png
- ./public/assets/fcclabels:/var/www/html/public/assets/fcclabels
- storage:/var/www/html/storage
env_file:
- .env
environment:
REDIS_HOST: redis
depends_on:
- redis
redis:
image: redis:7.0.11-alpine
restart: always
certbot:
image: certbot/certbot
restart: always
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
watchtower:
image: v2tec/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: sonar-customerportal
volumes:
storage:
driver: local