Resources attached to the Road To DevOps tutorial
https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
686 B
32 lines
686 B
2 years ago
|
version: "3"
|
||
|
services:
|
||
|
web:
|
||
|
image: web
|
||
|
environment:
|
||
|
- MYSQL_HOST=db
|
||
|
- MYSQL_DATABASE=docker
|
||
|
- MYSQL_USER=docker
|
||
|
- MYSQL_PASSWORD=docker
|
||
|
networks:
|
||
|
- formation_net
|
||
|
- traefik_traefik_net
|
||
|
deploy:
|
||
|
labels:
|
||
|
traefik.docker.network: "traefik_traefik_net"
|
||
|
traefik.port: "80"
|
||
|
traefik.frontend.rule: "Host:web.traefik"
|
||
|
db:
|
||
|
image: mariadb:10.7.1
|
||
|
environment:
|
||
|
- MYSQL_ROOT_PASSWORD=docker
|
||
|
- MYSQL_DATABASE=docker
|
||
|
- MYSQL_USER=docker
|
||
|
- MYSQL_PASSWORD=docker
|
||
|
networks:
|
||
|
- formation_net
|
||
|
networks:
|
||
|
traefik_traefik_net:
|
||
|
external: true
|
||
|
formation_net:
|
||
|
driver: overlay
|