chore: add devices, env_file, expose and profiles

This commit is contained in:
uccuz 2022-06-03 16:56:36 +08:00
parent 603f552551
commit 1076459e7c
4 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,12 @@
version: "3.9"
services:
frontend:
image: awesome/frontend
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
backend:
image: awesome/backend
devices:
- "/dev/ttyUSB1:/dev/ttyUSB1"
- "/dev/ttyUSB2:/dev/ttyUSB2"

View file

@ -0,0 +1,15 @@
version: "3.9"
services:
frontend:
image: awesome/frontend
env_file: a.env
backend:
image: awesome/backend
env_file:
- b.env
db:
image: awesome/db
env_file:
- c.env
- d.env

View file

@ -0,0 +1,12 @@
version: "3.9"
services:
frontend:
image: awesome/frontend
expose:
- "27118"
backend:
image: awesome/backend
expose:
- "27017"
- "27018"

View file

@ -0,0 +1,14 @@
version: "3.9"
services:
frontend:
image: awesome/frontend
profiles: ["frontend"]
phpmyadmin:
image: phpmyadmin
profiles:
- debug
db:
image: awesome/db
profiles:
- db
- sql