Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
docker
  • Loading branch information
a-j-n authored Jun 14, 2018
1 parent 0ddb8c1 commit 6c09f36
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
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

0 comments on commit 6c09f36

Please sign in to comment.