1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-04-03 16:51:11 +00:00

Merge branch '1-add-devops-basics' into 'master'

WIP: Resolve "Add devops basics"

Closes #1

See merge request animath/si/plateforme!1
This commit is contained in:
Hadrien Renaud 2019-09-08 14:56:19 +00:00
commit 01843fb09b
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