-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample-docker-compose.yml
69 lines (61 loc) · 1.33 KB
/
example-docker-compose.yml
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
services:
streamlit:
build:
context: ./FrontEnd
dockerfile: ./Streamlit/Dockerfile
ports:
- '80:80'
environment:
MAPBOX_TOKEN: pk.xxxxxxxxxxxxxx
restart: "no"
depends_on:
- fastapi
#mariadb:
# image: mariadb:latest
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD: admin
# MYSQL_DATABASE: moniaq
# MYSQL_USER: moniaq
# MYSQL_PASSWORD: admin
# ports:
# - "3307:3306"
# volumes:
# - ./data:/var/lib/mysql
#phpmyadmin:
#image: phpmyadmin/phpmyadmin
#restart: always
#environment:
# PMA_HOST: mariadb
# PMA_USER: root
# PMA_PASSWORD: admin
#ports:
# - "8001:80"
#depends_on:
# - mariadb
# - fastapi
fastapi:
build:
context: ./BackEnd
dockerfile: ./FastAPI/Dockerfile
environment:
DATABASE_URL: mysql://USER:PASSWORD@IP:3306/DB
ports:
- '8002:8085'
restart: "always"
# depends_on:
# - mariadb
#vendor:
# build:
# context: ./BackEnd
# dockerfile: ./Vendor/Dockerfile
# restart: "always"
# environment:
# DATABASE_URL: mysql://USER:PASSWORD@IP:3306/DB
# MQTT_HOST: mqtt.example.com
# MQTT_USERNAME: username
# MQTT_PASSWORD: pass
# MQTT_PORT: 8883
# depends_on:
# - mariadb
# - fastapi