mirror of
https://github.com/elyby/accounts.git
synced 2024-12-29 00:20:22 +05:30
41 lines
717 B
YAML
41 lines
717 B
YAML
|
version: '2'
|
||
|
services:
|
||
|
app:
|
||
|
build: .
|
||
|
depends_on:
|
||
|
- db
|
||
|
- redis
|
||
|
- rabbitmq
|
||
|
env_file: .env
|
||
|
|
||
|
web:
|
||
|
build: ./docker/nginx
|
||
|
volumes_from:
|
||
|
- app
|
||
|
links:
|
||
|
- app:php
|
||
|
env_file: .env
|
||
|
networks:
|
||
|
- default
|
||
|
- nginx-proxy
|
||
|
|
||
|
db:
|
||
|
build: ./docker/mariadb
|
||
|
env_file: .env
|
||
|
volumes:
|
||
|
- ./data/mysql:/var/lib/mysql
|
||
|
|
||
|
redis:
|
||
|
image: redis:3.0-alpine
|
||
|
volumes:
|
||
|
- ./data/redis:/data
|
||
|
|
||
|
rabbitmq:
|
||
|
image: rabbitmq:3.6
|
||
|
env_file: .env
|
||
|
|
||
|
networks:
|
||
|
nginx-proxy:
|
||
|
external:
|
||
|
name: nginx-proxy
|