Well, I have an application running in the docker environment, however I use docker-composer.yml and not Dockerfile to define services, etc. Is it possible to send an app only if it is mounted in Dockerfile? I follow all the steps in the Heroku documentation, which says to send the web service (heroku container: push web), my service is named as drupal . But I want to put into production something that is mounted using docker-compose.yml. Is it possible?
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ccf70f9d1dac drupal:latest "docker-php-entrypoi…" 16 hours ago Up 8 minutes 0.0.0.0:80->80/tcp Drupal8
0251597bb10d mariadb:latest "docker-entrypoint.s…" 16 hours ago Up 8 minutes 0.0.0.0:3306->3306/tcp MariaDbDrupal
$ heroku container:push Drupal8 --app ${aqui_nome_app_no_heroku}
▸ No images to push
Docker-composer.yml example:
version: '3.1'
services:
drupal:
image: drupal:latest
container_name: Drupal8
ports:
- 80:80
volumes:
- ./src:/var/www/html
restart: always
db:
image: mariadb:latest
container_name: MariaDbDrupal
volumes:
- ./db:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
ports:
- 3306:3306
In the simplified example above, docker-compose.yml. Did he have to redo in Dockerfile so he could climb up to Heroku? Thanks!