41 lines
678 B
YAML
41 lines
678 B
YAML
|
services:
|
||
|
frontend:
|
||
|
image: awesome/webapp
|
||
|
networks:
|
||
|
- front-tier
|
||
|
- back-tier
|
||
|
|
||
|
monitoring:
|
||
|
image: awesome/monitoring
|
||
|
networks:
|
||
|
- admin
|
||
|
|
||
|
|
||
|
backend:
|
||
|
networks:
|
||
|
back-tier:
|
||
|
aliases:
|
||
|
- database
|
||
|
admin:
|
||
|
aliases:
|
||
|
- mysql
|
||
|
volumes:
|
||
|
- type: volume
|
||
|
source: db-data
|
||
|
target: /data
|
||
|
volume:
|
||
|
nocopy: true
|
||
|
- type: bind
|
||
|
source: /var/run/postgres/postgres.sock
|
||
|
target: /var/run/postgres/postgres.sock
|
||
|
depends_on:
|
||
|
- monitoring
|
||
|
extends:
|
||
|
service: frontend
|
||
|
|
||
|
networks:
|
||
|
front-tier:
|
||
|
back-tier:
|
||
|
admin:
|
||
|
volumes:
|
||
|
db-data:
|