Built:
ENV NGINX_UPSTREAM=default
WORKDIR /var/www
Environments:
NGINX_UPSTREAM = default | varnish
NGINX_PROFILE = m1 | m2 | wp
CMD_1 = vhost-add domain1.com
CMD_2 = MAGE_RUN_TYPE=store MAGE_RUN_CODE=code vhost-add domain2.com
Compose:
nginx:
image: eradk/nginx:1.22
ports:
- 80:80
- 443:443
volumes:
- ./:/var/www
- vendor:/var/www/vendor
environment:
NGINX_PROFILE: m2
CMD_1: vhost-add my-domain.test
CMD_2: MAGE_RUN_TYPE=store MAGE_RUN_CODE=store_code2 vhost-add domain2.com
CMD_3: MAGE_RUN_TYPE=store MAGE_RUN_CODE=store_code3 vhost-add domain3.com
container_name: test_nginx
Content type
Image
Digest
sha256:2696b8d2e…
Size
68.2 MB
Last updated
over 1 year ago
docker pull eradk/nginx:1.22