-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (60 loc) · 1.51 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
version: "3.5"
services:
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
expose:
- '3306'
networks:
- metabasenet
metabase:
depends_on:
- mysql
image: shubham9411/metabase-only-google-sso
expose:
- '3000'
restart: always
environment:
MB_DB_TYPE: mysql
MB_DB_HOST: mysql
MB_DB_DBNAME: ${MYSQL_DATABASE}
MB_DB_PORT: 3306
MB_DB_USER: ${MYSQL_USER}
MB_DB_PASS: ${MYSQL_PASSWORD}
JAVA_OPTS: ${JAVA_OPTS}
networks:
- metabasenet
nginx:
depends_on:
- metabase
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/cache/:/etc/nginx/cache
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
ports:
- '80:80'
- '443:443'
networks:
- metabasenet
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
depends_on:
- nginx
image: certbot/dns-route53
restart: unless-stopped
networks:
- metabasenet
volumes:
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
metabasenet:
driver: bridge