2022-05-25 11:47:23 +02:00
|
|
|
services:
|
|
|
|
frontend:
|
|
|
|
image: awesome/webapp
|
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
monitoring:
|
2022-06-09 07:47:41 +02:00
|
|
|
env_file:
|
|
|
|
- a.env
|
|
|
|
- b.env
|
|
|
|
container_name: monitoring-server
|
2022-05-25 11:47:23 +02:00
|
|
|
image: awesome/monitoring
|
|
|
|
networks:
|
|
|
|
- admin
|
2022-06-09 07:47:41 +02:00
|
|
|
expose:
|
|
|
|
- 1234
|
|
|
|
profiles:
|
|
|
|
- tools
|
|
|
|
- foo
|
|
|
|
cgroup_parent: awesome-parent
|
2022-05-25 11:47:23 +02:00
|
|
|
|
|
|
|
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:
|
2024-04-27 18:42:34 +02:00
|
|
|
- name: web-secured
|
|
|
|
target: 443
|
|
|
|
host_ip: 127.0.0.1
|
|
|
|
published: "8083-9000"
|
|
|
|
protocol: tcp
|
|
|
|
app_protocol: wbsock
|
|
|
|
mode : host
|
2022-05-25 11:47:23 +02:00
|
|
|
links:
|
|
|
|
- "db:database"
|
2022-06-09 07:47:41 +02:00
|
|
|
cgroup_parent: awesome-parent
|
2022-05-25 11:47:23 +02:00
|
|
|
db:
|
|
|
|
image: postgres
|
2022-06-09 11:28:18 +02:00
|
|
|
profiles:
|
|
|
|
- foo
|
2022-06-09 07:47:41 +02:00
|
|
|
devices:
|
|
|
|
- "/dev/ttyUSB2:/dev/ttyUSB3"
|
|
|
|
- "/dev/sda:/dev/xvda:rwm"
|
2022-05-25 11:47:23 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
front-tier:
|
|
|
|
back-tier:
|
|
|
|
admin:
|
|
|
|
volumes:
|
|
|
|
db-data:
|