Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- restart: always
- image: postgres:latest
- ports:
- - "${POSTGRES_OUT_PORT}:5432"
- expose:
- - '${POSTGRES_OUT_PORT}'
- volumes:
- - pgdata:/var/lib/postgresql/data/
- env_file:
- - .env
- networks:
- - main
- web:
- restart: always
- build: .
- expose:
- - "${WEB_PORT}"
- volumes:
- - web-static:/srv/static/
- - web-media:/srv/media/
- - ./:/app
- ports:
- - "${WEB_PORT}:8000"
- env_file:
- - .env
- command: /usr/local/bin/gunicorn get_coffee.wsgi:application -w 2 -b :8000
- depends_on:
- - db
- networks:
- - main
- nginx:
- restart: always
- build: ./config/nginx/
- volumes:
- - web-static:/srv/static/
- - web-media:/srv/media/
- env_file:
- - .env
- depends_on:
- - web
- networks:
- - main
- redis_worker:
- image: "redis:alpine"
- ports:
- - "${REDIS_PORT}:6378"
- expose:
- - '${REDIS_PORT}'
- volumes:
- - /redis-data:/var/lib/redis
- - /redis.conf:/usr/local/etc/redis/redis.conf
- networks:
- - main
- env_file:
- - .env
- volumes:
- web-static:
- web-media:
- pgdata:
- networks:
- main:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement