version: '3'
services:
#PHP Service
app:
build:
context: ./docker
dockerfile: Dockerfile
image: devellopah/php
container_name: app
restart: always
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
working_dir: /var/www
volumes:
- ./:/var/www
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
- ./frontend/web/php.ini:/usr/local/etc/php/php.ini
networks:
- app-network
#Nginx Service
webserver:
image: nginx:alpine
container_name: webserver
restart: always
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-network
depends_on:
- db
#MySQL Service
db:
image: mysql:5.7.28
container_name: db
restart: always
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: arabic
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: arabic
MYSQL_PASSWORD: 111111
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- dbdata:/var/lib/mysql/
- ./docker/mysql/my.cnf:/etc/mysql/my.cnf
networks:
- app-network
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: phpmyadmin
restart: always
ports:
- "8080:80"
environment:
- PMA_HOST=db
- PMA_PORT=3306
- PMA_USER=arabic
- PMA_PASSWORD=111111
networks:
- app-network
depends_on:
- db
#Docker Networks
networks:
app-network:
driver: bridge
#Volumes
volumes:
dbdata:
driver: local
The license key is saved as a hashed string and thus cannot be accessed.