Each frontend and admin are will have their own container web
and admin
.
We want the following
- Web frontend will be accessed ad example.com
- Admin area will be accessed at example.com:7000
Configure the containers in docker-compose.yml
Dockerfile.web for web frontend
# Other server configurations for web frontend COPY apache2.web.conf /etc/apache2/apache2.conf …
Dockerfile.admin for admin area
# Other server configurations for admin area COPY apache2.admin.conf /etc/apache2/apache2.conf …
Spin up containers
Run docker-compose up -d