-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
56 lines (50 loc) · 1.75 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
version: '3.0'
services:
db:
container_name: db
image: mariadb:latest
volumes:
- ./db/admin_lte.sql:/docker-entrypoint-initdb.d/1-init.sql
- ./user-data/database:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
- "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
restart: always
ioticos:
container_name: ioticos
image: ioticosal/ioticosadmin:1.0
ports:
- "80:80"
- "443:443"
volumes:
- ./user-data/etc/letsencrypt:/etc/letsencrypt
#- ./build/ioticos/src/app:/var/www/html/app
- /etc/localtime:/etc/localtime:ro
environment:
- "TIMEZONE=${TIMEZONE}"
- "MYSQL_HOST=${MYSQL_HOST}"
- "MYSQL_PORT=${MYSQL_PORT}"
- "MYSQL_USER=${MYSQL_USER}"
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
- "MYSQL_DATABASE=${MYSQL_DATABASE}"
- "GET_DATA_PASSWORD=${GET_DATA_PASSWORD}"
- "INSERT_DATA_PASSWORD=${INSERT_DATA_PASSWORD}"
- "MQTT_USER=${MQTT_USER}"
- "MQTT_PASSWORD=${MQTT_PASSWORD}"
- "ROOT_TOPIC=${ROOT_TOPIC}"
links:
- db
depends_on:
- db
restart: always
certbot:
container_name: certbot
image: cnsoluciones/certbot:latest
network_mode: host
restart: always
volumes:
- ./user-data/etc/letsencrypt:/etc/letsencrypt
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"