Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
Do not expose mysql (matomo-org#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Oct 2, 2018
1 parent fef3ca4 commit 3d1591b
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .examples/apache/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
version: '3'
version: "3"

services:
app:
image: matomo:3.5-apache
restart: always
links:
- db
- db
volumes:
- ./config:/var/www/html/config:rw
- ./logs:/var/www/html/logs
- "./config:/var/www/html/config:rw"
- "./logs:/var/www/html/logs"
environment:
- VIRTUAL_HOST=CHANGE_ME
- "VIRTUAL_HOST=CHANGE_ME"
ports:
- '80:80'
- "80:80"

db:
image: mariadb:latest
volumes:
- ./mysql/runtime2:/var/lib/mysql
- "./mysql/runtime2:/var/lib/mysql"
environment:
- MYSQL_DATABASE=db
- MYSQL_ROOT_PASSWORD=CHANGE_ME
- MYSQL_USER=app
- MYSQL_PASSWORD=CHANGE_ME
ports:
- '3306:3306'
- "MYSQL_DATABASE=db"
- "MYSQL_ROOT_PASSWORD=CHANGE_ME"
- "MYSQL_USER=app"
- "MYSQL_PASSWORD=CHANGE_ME"

0 comments on commit 3d1591b

Please sign in to comment.