-- Laurence Haughton
Amélioration continue
PROD
PREPROD
STAGING
LOCAL
PROD
PREPROD
STAGING
LOCAL
Pour développer
Mettre en production
Containers
$ sudo docker pull nginx
$ docker build --tag="monprojet/api" .
$ docker run -d --name mynginx nginx
$ docker exec -it mynginx bash
db:
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD=piwik
- MYSQL_DATABASE=piwik
- MYSQL_USER=piwik
- MYSQL_PASSWORD=piwik
piwik:
image: cbeer/piwik
ports:
- 8080:80
links:
- db
$ docker-compose up -d
Creating piwik_db_1...
Creating piwik_piwik_1...
Containers