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
To build the `engelsystem` and the `engelsystem-nginx` container:
```bash
cd contrib
cd docker
docker-compose build
```
or to build the containers separately
```bash
docker build -f contrib/nginx/Dockerfile . -t engelsystem-nginx
docker build -f contrib/Dockerfile . -t engelsystem
docker build -f docker/nginx/Dockerfile . -t engelsystem-nginx
docker build -f docker/Dockerfile . -t engelsystem
```
Import database

View File

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

View File

@ -7,5 +7,5 @@ RUN yarn build
FROM nginx:alpine
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/