Moves docker files from contrib to docker

This commit is contained in:
Michael Weimann 2019-10-14 22:23:52 +02:00
parent 9b08b951a2
commit 53ce83a272
No known key found for this signature in database
GPG Key ID: 34F0524D4DA694A1
6 changed files with 6 additions and 6 deletions

View File

@ -117,14 +117,14 @@ PRODUCTION_REMOTE_PATH # Same as STAGING_REMOTE_PATH but for the production env
### Docker container ### Docker container
To build the `engelsystem` and the `engelsystem-nginx` container: To build the `engelsystem` and the `engelsystem-nginx` container:
```bash ```bash
cd contrib cd docker
docker-compose build docker-compose build
``` ```
or to build the containers separately or to build the containers separately
```bash ```bash
docker build -f contrib/nginx/Dockerfile . -t engelsystem-nginx docker build -f docker/nginx/Dockerfile . -t engelsystem-nginx
docker build -f contrib/Dockerfile . -t engelsystem docker build -f docker/Dockerfile . -t engelsystem
``` ```
Import database Import database

View File

@ -4,7 +4,7 @@ services:
image: engelsystem-nginx image: engelsystem-nginx
build: build:
context: .. context: ..
dockerfile: contrib/nginx/Dockerfile dockerfile: ""
ports: ports:
- 5000:80 - 5000:80
networks: networks:
@ -15,7 +15,7 @@ services:
image: engelsystem image: engelsystem
build: build:
context: .. context: ..
dockerfile: contrib/Dockerfile dockerfile: ""
environment: environment:
MYSQL_HOST: database MYSQL_HOST: database
MYSQL_USER: engelsystem MYSQL_USER: engelsystem

View File

@ -7,5 +7,5 @@ RUN yarn build
FROM nginx:alpine FROM nginx:alpine
RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php RUN mkdir -p /var/www/public/ && touch /var/www/public/index.php
COPY contrib/nginx/nginx.conf /etc/nginx/nginx.conf COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=themes /app/public/assets /var/www/public/assets/ COPY --from=themes /app/public/assets /var/www/public/assets/