diff --git a/docker-compose.stage.yml b/docker-compose.stage.yml new file mode 100644 index 0000000..8d5ebe6 --- /dev/null +++ b/docker-compose.stage.yml @@ -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