-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
78 lines (78 loc) · 2.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
services:
app:
container_name: basedash-app
image: basedash/basedash
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
env_file: ./docker.env
ports:
- "5000:5000"
restart: unless-stopped
rabbitmq:
image: rabbitmq:3.8-management-alpine
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
# A stable hostname is important to prevent the volume from continually growing on
# every restart. See issue described here: https://stackoverflow.com/questions/63115192/stale-rabbitmq-data-queue-files-eating-up-disk
hostname: 'rabbitmq'
volumes:
- rabbitmq-data/:/var/lib/rabbitmq/
- rabbitmq-logs/:/var/log/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
db:
container_name: basedash-db
image: postgres:12.2
restart: always
ports:
- '5432:5432'
env_file: ./docker.env
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
nginx:
image: nginx:mainline-alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx:/etc/nginx/conf.d
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/html
- dhparam:/etc/ssl/certs
depends_on:
- app
certbot:
image: certbot/certbot
depends_on:
- nginx
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/www/certbot
- web-root:/var/www/html
# Replace with your domain name and replace --staging with --force-renewal after initial certificate has been issues
command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --staging -d basedash.fm
volumes:
rabbitmq-data:
rabbitmq-logs:
db:
certbot-etc:
certbot-var:
dhparam:
web-root: