Skip to content

Commit

Permalink
Move nginx conf files to separate folders
Browse files Browse the repository at this point in the history
To prevent wrong nginx initial configuration
  • Loading branch information
Bachibouzouk committed May 25, 2022
1 parent fe3c5eb commit 1a1baa3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ services:
ports:
- "8090:80"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./nginx/mysql:/etc/nginx/conf.d
- ./src/cdn_static_root:/static
depends_on:
- app
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ services:
ports:
- "8080:80"
volumes:
- ./nginx_pg:/etc/nginx/conf.d
- static_volume:/static
- ./nginx/postgres:/etc/nginx/conf.d
- static_volume_pg:/static
depends_on:
- app_pg
networks:
Expand Down
1 change: 1 addition & 0 deletions nginx/mysql.conf → nginx/mysql/mysql.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
upstream django {
# app and the exposed port are defined in docker-compose-mysql.yml
server app:8000;
}

Expand Down
1 change: 1 addition & 0 deletions nginx/postgres.conf → nginx/postgres/postgres.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
upstream django {
# app_pg and the exposed port are defined in docker-compose-postgres.yml
server app_pg:8000;
}

Expand Down

0 comments on commit 1a1baa3

Please sign in to comment.