-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
132 lines (122 loc) · 3.57 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#version: 1.0.1 # Obsolete
services:
# database:
# container_name: webapp-db
# build:
# context: database
# no_cache: true
# networks:
# scacs-network:
# ipv4_address: 172.26.0.XX
webapp:
container_name: authentication-app
user: "${UID}:${GID}"
# depends_on:
# - database
build:
context: authentication-app
no_cache: true
volumes:
- ./authentication-app/authentication:/app/authentication
environment:
- SERVER_NAME=0.0.0.0
- FLASK_SERVER_PORT=8000
- FLASK_APP=authentication
- FLASK_DEBUG=1
networks:
scacs-network:
ipv4_address: 172.26.0.2
ports:
- 8000:8000
devices:
- /dev/ttyACM0:/dev/ttyACM0
stop_signal: SIGINT
privileged: true
tty: true
stdin_open: true
# Caching Database
# db_cache:
# container_name: database-cache-redis
# image: redis
# restart: always
# CoAP Server Ubuntu 20.04
coap_server:
container_name: ubuntu-coap-server
build:
context: coap-server
no_cache: false
volumes:
- ./coap-server:/app/
- ./coap-server/dump.pcap:/app/dump.pcap
restart: always
#network_mode: bridge # host
networks:
scacs-network:
ipv4_address: 172.26.0.20
ports:
- 80:80/udp
- 5683:5683/udp
#privileged: false
cap_add: # https://docs.docker.com/compose/compose-file/05-services/#cap_add
- NET_ADMIN
- NET_RAW
# MQTT Broker
# mosquitto:
# container_name: mosquitto
# image: eclipse-mosquitto
# volumes:
# - "./mosquitto-broker/config:/mosquitto/config"
# - "./mosquitto-broker/log:/mosquitto/log"
# - "./mosquitto-broker/data/:/mosquitto/data"
# restart: always
# ports:
# - "1883:1883"
networks:
scacs-network:
driver: bridge
ipam:
config:
- subnet: 172.26.0.0/24
gateway: 172.26.0.1
# Docker Network Drivers - https://docs.docker.com/network/drivers/
# -------------------------------------------------------------------
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Docker compose reference guide at
# https://docs.docker.com/compose/compose-file/
# Here the instructions define your application as a service called "server".
# This service is built from the Dockerfile in the current directory.
# You can add other services your application may depend on here, such as a
# database or a cache. For examples, see the Awesome Compose repository:
# https://github.com/docker/awesome-compose
# The commented out section below is an example of how to define a PostgreSQL
# database that your application can use. `depends_on` tells Docker Compose to
# start the database before your application. The `db-data` volume persists the
# database data between container restarts. The `db-password` secret is used
# to set the database password. You must create `db/password.txt` and add
# a password of your choosing to it before running `docker compose up`.
# depends_on:
# db:
# condition: service_healthy
# db:
# image: postgres
# restart: always
# user: postgres
# secrets:
# - db-password
# volumes:
# - db-data:/var/lib/postgresql/data
# environment:
# - POSTGRES_DB=example
# - POSTGRES_PASSWORD_FILE=/run/secrets/db-password
# expose:
# - 5432
# healthcheck:
# test: [ "CMD", "pg_isready" ]
# interval: 10s
# timeout: 5s
# retries: 5
# volumes:
# db-data:
# secrets:
# db-password:
# file: db/password.txt