You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.8 KiB
68 lines
1.8 KiB
version: '2'
|
|
|
|
services:
|
|
web:
|
|
restart: always
|
|
container_name: dokumentor-web-prod
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-prod
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- ./:/opt/app
|
|
ports:
|
|
- "32770:80"
|
|
- "33770:5555"
|
|
env_file: conf/env
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
- rabbitmq
|
|
|
|
db:
|
|
restart: always
|
|
container_name: dokumentor-db-prod
|
|
image: kiasaki/alpine-postgres:9.5
|
|
expose:
|
|
- "5432"
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- ./data/postgresql:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=dokumentor
|
|
- POSTGRES_PASSWORD=dokumentor
|
|
|
|
redis:
|
|
restart: always
|
|
container_name: dokumentor-redis-prod
|
|
image: redis:alpine
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
expose:
|
|
- "6379"
|
|
|
|
rabbitmq:
|
|
restart: always
|
|
container_name: dokumentor-rabbitmq-prod
|
|
image: rabbitmq:alpine
|
|
environment:
|
|
- RABBITMQ_DEFAULT_USER=dokumentor
|
|
- RABBITMQ_DEFAULT_PASS=dokumentor
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
expose:
|
|
- "5672"
|
|
- "5671"
|
|
|
|
bower:
|
|
container_name: dokumentor-bower-prod
|
|
build:
|
|
context: .
|
|
dockerfile: ./conf/compose/Dockerfile
|
|
command: /bin/sh -c "cd /opt/app && bower i"
|
|
volumes:
|
|
- ./:/opt/app
|
|
|