Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running with Docker #254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
57 changes: 57 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: '3.2'

services:
app:
image: meupatrocinio/apache2.4-php5.4-ssl-nr-rg
container_name: web
volumes:
- .:/var/www/html
ports:
- 8080:80
env_file: .env
depends_on:
- mysql


mysql:
image: mysql:5.7
restart: always
env_file: .env
volumes:
- ./mysql/data:/var/lib/mysql

phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
env_file: .env
restart: always
ports:
- 8081:80
#version: '3.2'
#
#services:
# app :
# build:
# context: .
# dockerfile: Dockerfile
# working_dir: /var/www
# volumes:
# - ./:/var/www/html
# ports:
# - 8080:80
#
# mysql:
# image: mysql
# restart: always
# env_file: .env
# volumes:
# - ./mysql/init:/docker-entrypoint-initdb.d:ro
# - ./mysql/data:/var/lib/mysql
#
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# container_name: phpmyadmin
# env_file: .env
# restart: always
# ports:
# - 8081:80
4 changes: 4 additions & 0 deletions env.exapmle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
MYSQL_ROOT_PASSWORD=Php@01010
MYSQL_DATABASE=hr
PMA_ARBITRARY=1