Skip to content

Commit

Permalink
added adminer and changed nginx in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Blazej Fitrzyk committed Dec 6, 2024
1 parent 95e89bf commit 920ec48
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.7'
services:
nginx:
container_name: NovaManagerNginx
image: nginx:1.21
build: ./nginx
restart: always
volumes:
- static_volume:/app/staticfiles
Expand All @@ -28,13 +28,19 @@ services:

api_db:
container_name: NovaManagerDatabase
image: mysql:5.7
image: mysql:8
env_file:
- ./.env.prod
volumes:
- nova_api_data:/var/lib/mysql
restart: always

adminer:
container_name: NovaManagerAdminer
image: adminer
restart: always
ports:
- 8082:8080

volumes:
nova_api_data:
Expand Down
4 changes: 4 additions & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM nginx:alpine

RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d
2 changes: 1 addition & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ server {
alias /app/staticfiles/;
}

}
}

0 comments on commit 920ec48

Please sign in to comment.