Skip to content

Commit

Permalink
Add Dockerfile for nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
tilosp committed Aug 28, 2017
1 parent ce0baed commit bce03e0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ services:
- db.env

web:
image: nginx
build: ./web
restart: always
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro

cron:
build: ./app
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx

COPY nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ services:
- db.env

web:
image: nginx
build: ./web
restart: always
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro

volumes:
db:
Expand Down
3 changes: 3 additions & 0 deletions .examples/docker-compose/insecure/mariadb/fpm/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx

COPY nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ services:
- db.env

web:
image: nginx
build: ./web
restart: always
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro

volumes:
db:
Expand Down
3 changes: 3 additions & 0 deletions .examples/docker-compose/insecure/postgres/fpm/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx

COPY nginx.conf /etc/nginx/nginx.conf

0 comments on commit bce03e0

Please sign in to comment.