Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ of these services, you likely would not use a docker version of them in producti

## Docker

### devop-tools (data source services / domain tools)
### Required: data source services
1. Execute `git clone git@github.com:sourcetoad/DevopsToolKit.git devop-tools`
2. `cd devop-tools`
3. `cd ./docker/data-source-services/`
Expand All @@ -35,6 +35,21 @@ of these services, you likely would not use a docker version of them in producti
6. Wait for the terminal to complete executing.
7. You now have Sourcetoad data sources running and logging to the console.

### Optional: data source tools
1. Optionally included is the following tools:
* phpMyAdmin
2. `cd devop-tools`
3. `cd ./docker/data-source-tools/`
4. Execute `docker-compose up --build`
5. Wait for the terminal to complete executing.
6. You know have Sourcetoad data source tools running.

## phpMyAdmin
If the optional tools are launched, you can find phpMyAdmin at: localhost:8080
* It supports the following databases...
* mariadb102
* mariadb103

## Examples
Inside the `examples` folder you will find example Docker configurations for
popular frameworks like Laravel and Yii2.
Expand Down
4 changes: 4 additions & 0 deletions docker/data-source-services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
- ./proxy_increase.conf:/etc/nginx/proxy.conf
networks:
- nginx-proxy
- st-internal
postgres95:
image: postgres:9.5
container_name: sourcetoad_postgres95
Expand All @@ -26,6 +27,7 @@ services:
- POSTGRES_PASSWORD=postgres_pass
networks:
- st-postgres-95
- st-internal
command: "postgres
-c logging_collector='on'
-c log_directory='/var/log/postgresql'
Expand Down Expand Up @@ -54,6 +56,7 @@ services:
- MYSQL_PASSWORD=mariadb_pass
networks:
- st-mariadb-102
- st-internal
redis32:
image: redis:3.2-alpine
command: redis-server --appendonly yes
Expand All @@ -62,6 +65,7 @@ services:
- "6332:6379"
networks:
- st-redis-32
- st-internal
networks:
nginx-proxy:
external:
Expand Down
17 changes: 17 additions & 0 deletions docker/data-source-tools/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '2'
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: sourcetoad_phpmyadmin
ports:
- 8080:80
networks:
- st-internal
environment:
PMA_HOSTS: mariadb102,mariadb103
PMA_USER: root
PMA_PASSWORD: root
networks:
st-internal:
external:
name: st-internal