forked from extremeshok/docker-xmysql-https-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-sample-self-signed.yml
43 lines (43 loc) · 1.16 KB
/
docker-compose-sample-self-signed.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
version: '2.1'
########## SERVICES ########
services:
#
# In this example the system is running under HTTPS (ssl)
# a selfsigned certificate will be created if one is not found in the /certs/ volume
#
###### xshokxmysqlhttps
xshokxmysqlhttps:
image: extremeshok/xmysql-https-auth:latest
depends_on:
- mariadb
volumes:
- vol-certificates:/certs/:rw
environment:
- TZ=${TZ}
- SQL_HOST=mariadb
- SQL_PORT=3306
- SQL_DATABASE=${SQL_DATABASE}
- SQL_USERNAME=${SQL_USERNAME}
- SQL_PASSWORD=${SQL_PASSWORD}
- API_PREFIX=/
- API_FILTERTABLES=users,admins
# - API_IGNORETABLES=backends,stats,sessions
- API_KEY=some-secure-key
- API_ALLOW_IP=192.1.0.0/24,10.10.10.10
- API_HTTP_AUTH=username:{PLAIN}password
# used for server name, ssl cert
- API_HOSTNAME=${HOSTNAME}
restart: always
links:
- mariadb:mariadb
dns:
- ${IPV4_NETWORK:-172.22.1}.254
ports:
- 3443:443
sysctls:
- net.ipv6.conf.all.disable_ipv6=${SYSCTL_IPV6_DISABLED:-0}
networks:
network:
ipv4_address: ${IPV4_NETWORK:-172.22.1}.202
aliases:
- xmysql