-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (40 loc) · 995 Bytes
/
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
version: "3.8"
services:
frontend:
restart: always
image: alexheld/plant-controller-frontend:latest
container_name: plant-controller-frontend
build:
context: frontend
dockerfile: Dockerfile
ports:
- 80:80
depends_on:
- postgres
- backend
backend:
restart: always
image: alexheld/plant-controller-backend:latest
container_name: plant-controller-backend
build:
context: server
dockerfile: Dockerfile
environment:
- LOG_LEVEL=debug
- PG_URL=postgres://postgres:postgres@postgres:5432/plant-controller?sslmode=disable
- HTTP_ADDR=:8080
ports:
- 8080:8080
depends_on:
- postgres
postgres:
restart: always
image: postgres:latest
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=plant-controller
volumes:
- ./data/init-db.sql:/docker-entrypoint-initdb.d/init.sql