-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
120 lines (107 loc) · 3.07 KB
/
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
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
version: '3'
services:
# emptycontainer:
# build:
# context: .
# dockerfile: Dockerfile.emptycontainer # Reference the Dockerfile to build the app image
# container_name: testing
# platform: linux/amd64
# volumes:
# - ./app:/app # Mount local folder if needed for development
# depends_on:
# postgres:
# condition: service_healthy
# networks:
# - pg_network
django:
build:
context: .
dockerfile: Dockerfile.django # Reference the Dockerfile to build the app image
# platform: linux/amd64
container_name: django
volumes:
- ./app:/app # Mount local folder if needed for development
ports:
- "8000:8000" # Expose app port (this is optional)
depends_on:
postgres:
condition: service_healthy
networks:
- pg_network
# map:
# build:
# context: .
# dockerfile: Dockerfile.map # Reference the Dockerfile to build the app image
# container_name: map
# volumes:
# - ./app:/app # Mount local folder if needed for development
# ports:
# - "3000:3000" # Expose app port (this is optional)
# depends_on:
# - postgres # Ensure the postgres service is up first
# networks:
# - pg_network
pipeline:
build:
context: .
dockerfile: Dockerfile.pipeline # Reference the Dockerfile to build the app image
container_name: pipeline
volumes:
- ./app:/app # Mount local folder if needed for development
depends_on:
postgres:
condition: service_healthy
networks:
- pg_network
groundstation:
build:
context: .
dockerfile: Dockerfile.groundstation # Reference the Dockerfile to build the app image
container_name: groundstation
volumes:
- ./app:/app # Mount local folder if needed for development
ports:
- "8081:8081" # Expose app port (this is optional)
depends_on:
- postgres # Ensure the postgres service is up first
networks:
- pg_network
postgres:
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: eos_db
volumes:
- postgres_data:/var/lib/postgresql/data
- ./EosGround/config/eos_schema.sql:/docker-entrypoint-initdb.d/01-eos_schema.sql
networks:
- pg_network
ports:
- "5432:5432" # Exposing PostgreSQL port for testing (optional)
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- "5050:80" # Exposing pgAdmin port
volumes:
- ./pgadmin-servers/servers.json:/pgadmin4/servers.json
networks:
- pg_network
depends_on:
- postgres # Ensures pgAdmin starts after PostgreSQL
networks:
pg_network:
driver: bridge
volumes:
postgres_data: