MA
Size: a a a
MA
GT
docker-compose up --build
?D🐈
docker-compose up --build
?MA
docker-compose up --build
?D🐈
D🐈
D🐈
build:
context: .
args:
MYSQL_ROOT_PASSWORD: password
ENV: test
ARG MYSQL_ROOT_PASSWORD
ARG ENV
ADD ${ENV}/data.xml /data/
MA
build:
context: .
args:
MYSQL_ROOT_PASSWORD: password
ENV: test
ARG MYSQL_ROOT_PASSWORD
ARG ENV
ADD ${ENV}/data.xml /data/
GT
D🐈
D🐈
D🐈
GT
MA
GT
ARG APP_DOMAIN
ENV APP_DOMAIN=$APP_DOMAIN
GT
MA
ARG APP_DOMAIN
ENV APP_DOMAIN=$APP_DOMAIN
GT
MA
GT
web:
image: docker.test/vokamut/nginx:latest
restart: always
depends_on:
- app
links:
- app
volumes:
- ${PWD}/certs:/etc/nginx/ssl
ports:
- 80:80
- 443:443
networks:
- docker-net
env_file: .env.prod
FROM nginx:1.15-alpine
RUN apk --no-cache add gettext
COPY docker/vhost.conf /etc/nginx/nginx.conf.template
COPY public /var/www/public
ARG APP_DOMAIN
ENV APP_DOMAIN=$APP_DOMAIN
CMD ["/bin/sh", "-c", "/usr/bin/envsubst '$$APP_DOMAIN' < /etc/nginx/nginx.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"]
server {
server_name ${APP_DOMAIN};
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/nginx/ssl/${APP_DOMAIN}.crt;
ssl_certificate_key /etc/nginx/ssl/${APP_DOMAIN}.key;
...