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.
 
 
 
 

66 lines
1.7 KiB

version: '2'
services:
web:
restart: always
container_name: dokumentor-web-stage
build: .
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./:/opt/app
ports:
- "32778:80"
- "33778:5555"
env_file: conf/env
depends_on:
- db
- redis
- rabbitmq
db:
restart: always
container_name: dokumentor-db-stage
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-stage
image: redis:alpine
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
expose:
- "6379"
rabbitmq:
restart: always
container_name: dokumentor-rabbitmq-stage
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-stage
build:
context: .
dockerfile: ./conf/compose/Dockerfile
command: /bin/sh -c "cd /opt/app && bower i"
volumes:
- ./:/opt/app