TEXT   56

docker compose local yml

Guest on 21st September 2022 02:13:55 PM

  1. version: '3.7'
  2.  
  3. services:
  4.   postgres:
  5.     image: postgres:10.5
  6.     container_name: indeelabs-postgres
  7.     restart: unless-stopped
  8.     volumes:
  9.       - postgres_data:/var/lib/postgresql/data
  10.  
  11.   redis:
  12.     image: redis:4.0
  13.     container_name: indeelabs-redis
  14.     restart: unless-stopped
  15.  
  16.   wagtail:
  17.     build:
  18.       context: .
  19.       target: wagtail
  20.       args:
  21.         - ENV=dev
  22.     container_name: indeelabs-wagtail
  23.     restart: unless-stopped
  24.     env_file: .env
  25.     volumes:
  26.       - ./wagtail/:/home/wagtail/app/
  27.       - wagtail_static:/home/wagtail/static/
  28.       - wagtail_media:/home/wagtail/media/
  29.     depends_on:
  30.       - postgres
  31.       - redis
  32.     ports:
  33.       - 8000:8000
  34.     command: gunicorn indeelabs.wsgi:application --reload --bind 0.0.0.0:8000 --workers=1
  35.  
  36.   webpack:
  37.     build:
  38.       context: .
  39.       target: webpack
  40.     container_name: indeelabs-webpack
  41.     volumes:
  42.       - ./assets/:/home/webpack/app/assets/
  43.       - ./wagtail/:/home/wagtail/app/
  44.       - ./webpack.config.js:/home/webpack/app/webpack.config.js
  45.     ports:
  46.       - 3000:3000
  47.     command: >
  48.       sh -c "npm install &&
  49.              npm run start"
  50.  
  51. volumes:
  52.   ? postgres_data
  53.   ? wagtail_static
  54.   ? wagtail_media

Raw Paste


Login or Register to edit or fork this paste. It's free.