Added Adminer container for auditing SQL.

Disabled restarts for now.
This commit is contained in:
chamunks 2018-06-02 11:45:06 -04:00
parent 027475790a
commit 63236c3754

View file

@ -1,10 +1,4 @@
## To-Do: ## YMMV and this is not supported but should be a few steps away from deployable.
# This docker-compose.yml file will be for spinning up a basic instance.
# You likely won't want to run this in production but its to get it up and going.
# If you want to run this in production to-do:
# * [ ] Front end reverse proxy like caddy, nginx or traefik.
# * [ ] Security assessment and adjustments to suit your environment.
version: '3.4' version: '3.4'
services: services:
@ -15,7 +9,7 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
restart: always # restart: always
expose: expose:
- 3000 - 3000
volumes: volumes:
@ -40,7 +34,7 @@ services:
build: build:
context: ../lbrynet-daemon/ context: ../lbrynet-daemon/
dockerfile: Dockerfile dockerfile: Dockerfile
restart: always # restart: always
expose: expose:
- 4444 - 4444
- 50001 - 50001
@ -61,7 +55,7 @@ services:
## https://hub.docker.com/r/_/mariadb/ ## https://hub.docker.com/r/_/mariadb/
mysql: mysql:
image: mariadb image: mariadb
restart: always # restart: always
environment: environment:
MYSQL_SERVER: 10.5.0.8 MYSQL_SERVER: 10.5.0.8
MYSQL_USER: replaceme MYSQL_USER: replaceme
@ -80,6 +74,29 @@ services:
aliases: aliases:
- mysql - mysql
#######################
## Adminer container ##
#######################
adminer:
image: adminer
# restart: always
links:
- "mysql:database"
depends_on:
- mysql
labels:
# https://docs.traefik.io/user-guide/docker-and-lets-encrypt/
- "traefik.backend=adminer"
- "traefik.docker.network=green"
- "traefik.frontend.rule=Host:adminer.YOURDOMAINHERE"
- "traefik.expose=true"
- "traefik.port=8080"
# healthcheck:
# test: ["CMD", "curl", "--fail", "http://localhost:8080/", "||", "exit", "1"]
networks:
green:
ipv4_address: 10.5.0.9
######################### #########################
## Network Definitions ## ## Network Definitions ##
######################### #########################