Commit 92d5e140 authored by Gregoire Parant's avatar Gregoire Parant 🚀

Add all file for project formation noob

parent bfb5b818
back @ 8f053137
Subproject commit 8f053137ce75ae600fffd1be7aa2d142665ed1c1
version: '3'
services:
front:
image: testfront
command: npm run dev
working_dir: /usr/src/app
labels:
- 'traefik.backend=frontend'
- 'traefik.frontend.rule=Host:front.${HOST_URL}'
- 'traefik.port=8080'
volumes:
- ./front:/usr/src/app
env_file:
- ./.env
back:
image: testback
command: adonis serve --dev
working_dir: /usr/src/app
labels:
- 'traefik.backend=backend'
- 'traefik.frontend.rule=Host:back.${HOST_URL}'
- 'traefik.port=8080'
volumes:
- ./back:/usr/src/app
env_file:
- ./.env
mysql:
image: testmysql
labels:
- 'traefik.enable=false'
env_file:
- ./.env
traefik:
command: '--docker --logLevel=DEBUG'
image: traefik:1.7
labels:
- 'traefik.backend=traefik'
- 'traefik.frontend.rule=Host:traefik.${HOST_URL}'
- 'traefik.port=8080'
ports:
- '80:80'
- '443:443'
- '8080:8080'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- './traefik/traefik.dev.toml:/traefik.toml:ro'
- './traefik/acme.json:/acme.json:rw'
front @ 111639d8
Subproject commit 111639d8899dbf1c25f2cfb9a0268426de8d4947
FROM mysql:5.7
ADD ./dump/databases.sql /docker-entrypoint-initdb.d/01-dump.sql
ENV DB_USERNAME=formationnoobdocker
ENV DB_PASSWORD=apwnZOXN*
ENV MYSQL_ROOT_PASSWORD=apwnZOXN*
ENV MYSQL_USER=screlec
ENV MYSQL_PASSWORD=apwnZOXN*
ENV MYSQL_DATABASE=formationnoobdocker
EXPOSE 3306 33060
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Hôte : companiesdb
-- Généré le : Dim 26 mai 2019 à 18:03
-- Version du serveur : 5.7.26
-- Version de PHP : 7.2.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `databases`
--
-- --------------------------------------------------------
--
-- Structure de la table `databases`
--
USE formationnoobdocker;
CREATE TABLE `databases` (
`name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
defaultEntryPoints = ["http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[retry]
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "screlec.local"
watch = true
exposedbydefault = false
[web] # Port for the status page
address = ":8080"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment