-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.16 KB
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
services:
db:
image: postgres
restart: no
# set shared memory limit when using docker-compose
shm_size: 128mb
environment:
POSTGRES_PASSWORD: test
POSTGRES_USER: test
POSTGRES_DB: test
ports:
- 5432:5432
volumes:
- ./init_database.sql:/docker-entrypoint-initdb.d/init_database.sql
adminer:
image: adminer
restart: no
ports:
- 8081:8080
front:
# image: goldensuneur/frontend
image: ghcr.io/theolecalvar/smart-grid/frontend
restart: no
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 8082:8082
windturbine:
# image: goldensuneur/windturbine
image: ghcr.io/theolecalvar/smart-grid/windturbine
restart: no
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
URL: "http://host.docker.internal:8080/ingress/windturbine"
TURBINE_ID: 2
solar_panel:
# image: goldensuneur/solarpanel
image: ghcr.io/theolecalvar/smart-grid/solarpanel
restart: no
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
IP: "host.docker.internal"
PORT: 12345
SOLAR_PANEL_ID: 1