🐳 Add docker configuration
This commit is contained in:
parent
5771a15a32
commit
f4fd072c0f
|
@ -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/
|
|
@ -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
|
Loading…
Reference in New Issue