🐳 Add docker configuration

This commit is contained in:
Hadrien RENAUD 2019-09-08 16:04:31 +02:00
parent 5771a15a32
commit f4fd072c0f
No known key found for this signature in database
GPG Key ID: 0FAAB439EF9224AB
2 changed files with 40 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM php:7.3-apache as plateforme-builder
RUN a2enmod rewrite
RUN docker-php-ext-install pdo_mysql \
&& docker-php-ext-enable pdo_mysql
COPY . /var/www/html/

32
docker-compose.yml Normal file
View File

@ -0,0 +1,32 @@
version: '3'
services:
db:
image: mysql:5
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: mysql_root_password
MYSQL_DATABASE: plateforme
MYSQL_USER: plateforme
MYSQL_PASSWORD: plateforme
adminer:
image: adminer
restart: always
ports:
- 8888:8080
depends_on:
- db
plateforme:
build:
context: .
ports:
- 80:80
depends_on:
- db
environment:
TFJM_DB_HOST: db
TFJM_DB_USER: plateforme
TFJM_DB_NAME: plateforme
TFJM_DB_PASSWORD: plateforme