parent
152709a8e6
commit
80f4ad07dc
1 changed files with 66 additions and 0 deletions
@ -0,0 +1,66 @@ |
||||
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: |
||||
- "32768:80" |
||||
- "33768: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 |
||||
Loading…
Reference in new issue