Add Dockerfile for nginx

This commit is contained in:
Tilo Spannagel 2017-08-14 15:32:08 +02:00
parent f1515a32dc
commit b120af8e7f
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
9 changed files with 12 additions and 6 deletions

View File

@ -25,13 +25,12 @@ services:
- db.env - db.env
web: web:
image: nginx build: ./web
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
cron: cron:
build: ./app build: ./app

View File

@ -0,0 +1,3 @@
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf

View File

@ -21,13 +21,12 @@ services:
- db.env - db.env
web: web:
image: nginx build: ./web
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes: volumes:
db: db:

View File

@ -0,0 +1,3 @@
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf

View File

@ -18,13 +18,12 @@ services:
- db.env - db.env
web: web:
image: nginx build: ./web
restart: always restart: always
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes: volumes:
db: db:

View File

@ -0,0 +1,3 @@
FROM nginx
COPY nginx.conf /etc/nginx/nginx.conf