Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregoire Parant
formation-noob-docker
Commits
92b1fae5
Commit
92b1fae5
authored
Jun 11, 2019
by
Gregoire Parant
🚀
Browse files
Add docker compose for the formation
parent
700fe83b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Noob_Docker.pptx
View file @
92b1fae5
No preview for this file type
README.md
View file @
92b1fae5
...
...
@@ -28,11 +28,13 @@ N'oublier d'ajouter les volumes.
>- Virtual port : 8080
#### Front
>- Image : thecodingmachine/nodejs:10
>- Virtual host : front.formationnoob.localhost
>- Virtual port : 8080
>- Command: npm run dev
#### Back
>- Image : thecodingmachine/nodejs:10
>- Virtual host : back.formationnoob.localhost
>- Virtual port : 8080
>- Command: npm run dev
...
...
docker-compose.yaml
0 → 100644
View file @
92b1fae5
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'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment