Commit 92b1fae5 authored by Gregoire Parant's avatar Gregoire Parant 🚀
Browse files

Add docker compose for the formation

parent 700fe83b
No preview for this file type
...@@ -28,11 +28,13 @@ N'oublier d'ajouter les volumes. ...@@ -28,11 +28,13 @@ N'oublier d'ajouter les volumes.
>- Virtual port : 8080 >- Virtual port : 8080
#### Front #### Front
>- Image : thecodingmachine/nodejs:10
>- Virtual host : front.formationnoob.localhost >- Virtual host : front.formationnoob.localhost
>- Virtual port : 8080 >- Virtual port : 8080
>- Command: npm run dev >- Command: npm run dev
#### Back #### Back
>- Image : thecodingmachine/nodejs:10
>- Virtual host : back.formationnoob.localhost >- Virtual host : back.formationnoob.localhost
>- Virtual port : 8080 >- Virtual port : 8080
>- Command: npm run dev >- Command: npm run dev
......
version: '3'
services:
front:
image: git.thecodingmachine.com:444/g.parant/formation-noob-docker/front
#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: git.thecodingmachine.com:444/g.parant/formation-noob-docker/back
#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: git.thecodingmachine.com:444/g.parant/formation-noob-docker/db
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'
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