-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from sagautam5/dockerize-local-states-nepal
Dockerize local states nepal
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM sagautam5/localstates_7.4:v1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
version: '1.0' | ||
services: | ||
localstates: | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
image: localstates | ||
working_dir: /var/www/html/ | ||
volumes: | ||
- ./:/var/www/html | ||
expose: | ||
- 9000 | ||
tty: true | ||
restart: unless-stopped | ||
container_name: localstates | ||
networks: | ||
- lsn | ||
|
||
nginx: | ||
image: nginx:alpine-slim | ||
volumes: | ||
- ./:/var/www/html | ||
- ./localstates.conf:/etc/nginx/conf.d/localstates.conf | ||
ports: | ||
- 80:80 | ||
depends_on: | ||
- localstates | ||
container_name: lsn_nginx | ||
restart: unless-stopped | ||
tty: true | ||
networks: | ||
- lsn | ||
networks: | ||
lsn: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
server { | ||
listen 80; | ||
server_name localstates.test www.localstates.test; | ||
|
||
root /var/www/html/demo; | ||
|
||
location / { | ||
index index.php index.html; | ||
} | ||
|
||
location ~* \.php$ { | ||
fastcgi_pass localstates:9000; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
} | ||
} |