version: '3.7' services: nginx: container_name: junglescout_nginx build: context: . dockerfile: ./private/docker/nginx/Dockerfile restart: always ports: - 80:80 - 443:443 env_file: - ./private/docker/.env tmpfs: - /code/wp-content/themes/wolfpack-v2/node_modules volumes: - .:/code - ./private/docker/nginx/default.conf:/etc/nginx/conf.d/default.conf - ./private/docker/localhost.pem:/etc/nginx/ssl/127.0.0.1.pem - ./private/docker/localhost-key.pem:/etc/nginx/ssl/127.0.0.1-key.pem links: - php - database - cache php: container_name: junglescout_wordpress build: context: . dockerfile: ./private/docker/php/Dockerfile restart: always env_file: - ./private/docker/.env tmpfs: - /code/wp-content/themes/wolfpack-v2/node_modules volumes: - .:/code - ./private/docker/php/php.ini:/usr/local/etc/php/php.ini - ./private/docker/php/php-fpm.conf:/usr/local/etc/php-fpm.conf - ./private/docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf links: - database - cache database: container_name: junglescout_database image: mariadb ports: - 3306:3306 restart: always env_file: - ./private/docker/.env working_dir: /code environment: MYSQL_ROOT_PASSWORD: wolf volumes: - ./db.sql.gz:/code/db.sql.gz - junglescout-database-volume:/var/lib/mysql phpmyadmin: container_name: junglescout_phpmyadmin image: phpmyadmin ports: - 8080:80 env_file: - ./private/docker/phpmyadmin/.env depends_on: - database cache: container_name: junglescout_cache image: redis:6 restart: always env_file: - ./private/docker/.env command: redis-server --requirepass wolf # sync: # container_name: junglescout_sync # build: # context: ./ # dockerfile: ./private/docker/sync/Dockerfile # volumes: # - ./private/docker/sync/sync-host-to-container.sh:/sync-host-to-container.sh # - ./:/host-files # - junglescout-site-volume:/docker-files # depends_on: # - php # - nginx volumes: junglescout-database-volume: # junglescout-site-volume: