62 lines
1.1 KiB
YAML
62 lines
1.1 KiB
YAML
services:
|
|
frontend:
|
|
image: awesome/webapp
|
|
networks:
|
|
- front-tier
|
|
- back-tier
|
|
|
|
monitoring:
|
|
env_file:
|
|
- a.env
|
|
- b.env
|
|
container_name: monitoring-server
|
|
image: awesome/monitoring
|
|
networks:
|
|
- admin
|
|
expose:
|
|
- 1234
|
|
profiles:
|
|
- tools
|
|
- foo
|
|
cgroup_parent: awesome-parent
|
|
|
|
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
|
|
ports:
|
|
- "8000:5010"
|
|
links:
|
|
- "db:database"
|
|
cgroup_parent: awesome-parent
|
|
db:
|
|
image: postgres
|
|
profiles:
|
|
- foo
|
|
devices:
|
|
- "/dev/ttyUSB2:/dev/ttyUSB3"
|
|
- "/dev/sda:/dev/xvda:rwm"
|
|
|
|
networks:
|
|
front-tier:
|
|
back-tier:
|
|
admin:
|
|
volumes:
|
|
db-data:
|