0
I’m starting to use Docker-Compose and would like to know how to set up a domain for my apache container via Docker-Compose.yml? Currently to access my container I type localhost:3000.
cms:
environment:
O2_MYSQL_HOST: mysql
TZ: "America/Sao_Paulo"
image: o2multi/apache-php7
restart: always
ports:
- "3000:80"
volumes:
- ./src:/var/www/html/
- ./devops/docker/webserver/custom.ini:/etc/php/7.1/apache2/conf.d/666-custom.ini
- ./devops/docker/webserver/o2.conf:/etc/apache2/sites-enabled/001-o2.conf
links:
- mysql
Speak buddy, when you say domain you are saying you have a domain ". com, .com.br" purchased and would like to point to your container ?
– Brunno
No, I just want to be able to access my container via an unpaid domain. Ex: Docker.qqrcoisa.com
– Bernardo Kowacic