Last active
December 5, 2019 03:31
-
-
Save rindrasakti/dd1eb4335b4a137f87bf18a62d6e5a77 to your computer and use it in GitHub Desktop.
YAMLFILE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######isi dari Dockerfile##################################################### | |
FROM php:7.4-apache | |
COPY ./www /var/www/html | |
#########ISI DARI docker-compose.yml####################################################### | |
version: "2" | |
services: | |
web: | |
build: . | |
ports: | |
- 8181:80 | |
links: | |
- db:db | |
volumes: | |
- ./www:/var/www/html | |
db: | |
image: mysql | |
ports: | |
- 3307:3306 | |
command: --default-authentication-plugin=mysql_native_password | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: 'abc' | |
MYSQL_USER: 'wawan' | |
MYSQL_PASSWORD: 'password' | |
MYSQL_DATABASE: 'wawanDb' | |
networks: | |
default: | |
ipv4_address: 172.16.0.100 | |
pma: | |
image: phpmyadmin/phpmyadmin | |
links: | |
- db:db | |
ports: | |
- 8282:80 | |
environment: | |
MYSQL_USER: 'wawan' | |
MYSQL_PASSWORD: 'password' | |
MYSQL_ROOT_PASSWORD: 'abc' | |
networks: | |
default: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 172.16.0.0/24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment