-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (41 loc) · 918 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (41 loc) · 918 Bytes
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
version: "3.9"
services:
tractor-app:
build: interface/
container_name: tractor-app
ports:
- "8502:8501"
restart: unless-stopped
depends_on:
- postgres
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: redis
container_name: redis-server
depends_on:
- api
ports:
- "6379:6379"
api:
build: forecasting/
container_name: tractor-api
ports:
- "5555:5555"
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
postgres:
image: postgres:15
environment:
POSTGRES_DB: "Tractors"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "Metra2004"
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- data:/var/lib/postgresql/data
- ./dumps/dump2.sql:/docker-entrypoint-initdb.d/dump2.sql
ports:
- 5433:5432
volumes:
data: