I am starting to use docker-compose and would like to know how to configure 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