Provide volume for backend log-files in Docker, move the ones of nginx from dev Docker Compose to main

This commit is contained in:
Wolfgang Huß 2022-07-21 11:04:19 +02:00
parent 47fb530725
commit 213b670f68
2 changed files with 9 additions and 3 deletions

View File

@ -89,9 +89,10 @@ services:
######################################################### #########################################################
## NGINX ################################################ ## NGINX ################################################
######################################################### #########################################################
nginx: # moved to 'docker-compose.yml'
volumes: # nginx:
- ./logs/nginx:/var/log/nginx # volumes:
# - ./logs/nginx:/var/log/nginx
######################################################### #########################################################
## PHPMYADMIN ########################################### ## PHPMYADMIN ###########################################

View File

@ -103,6 +103,9 @@ services:
# Application only envs # Application only envs
#env_file: #env_file:
# - ./frontend/.env # - ./frontend/.env
volumes:
# <host_machine_directy>:<container_directory> mirror bidirectional path in local context with path in Docker container
- ./logs:/app/logs
######################################################## ########################################################
# DATABASE ############################################# # DATABASE #############################################
@ -144,6 +147,8 @@ services:
- admin - admin
ports: ports:
- 80:80 - 80:80
volumes:
- ./logs/nginx:/var/log/nginx
networks: networks:
external-net: external-net: