skip to Main Content

Save logs in Docker volume (write permission for all users on volume) – Nginx

I have a Yii application with docker-compose.yml: version: '3' services: web: image: nginx restart: always volumes: - ./docker/conf/nginx/default.conf:/etc/nginx/conf.d/default.conf - .:/var/www/html ports: - 80:80 depends_on: - php php: image: yiisoftware/yii2-php:7.1-fpm restart: always volumes: - ./docker/conf/php/php.ini:/usr/local/etc/php/conf.d/php.ini - .:/var/www/html All is good. Then…

VIEW QUESTION

Redis – Docker Compose Bash Command Not Working In YAML but Works Inside Container

Following is my docker compose file. version: '3' services: redis: image: "redis" volumes: - ./redis.conf:/usr/local/etc/redis/redis.conf - ./redis-volume:/data:rw command: redis-server /usr/local/etc/redis/redis.conf service1: build: . image: 'myregistry.azurecr.io/myapp:latest' ports: - '5500:80' volumes: - ./appsettings.json:/app/appsettings.json command: bash -c 'for file in /app/ClientApp/dist/myapp/main*.js; do sed…

VIEW QUESTION
Back To Top
Search