-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.14 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.14 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:
postgres:
image: postgres:15
environment:
POSTGRES_DB: geocam_db
POSTGRES_USER: geocam
POSTGRES_PASSWORD: geocam
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U geocam"]
interval: 10s
timeout: 5s
retries: 5
steganography-service:
build:
context: .
dockerfile: Dockerfile.node
ports:
- "3001:3001"
environment:
- NODE_ENV=production
volumes:
- ./temp_images:/app/temp_images
depends_on:
postgres:
condition: service_healthy
api-service:
build:
context: .
dockerfile: Dockerfile.python
ports:
- "5001:5001"
environment:
- DATABASE_URL=postgresql://geocam:geocam@postgres:5432/geocam_db
- STEGANOGRAPHY_SERVICE_URL=http://steganography-service:3001
- SECRET_KEY=your-secret-key-here
depends_on:
postgres:
condition: service_healthy
steganography-service:
condition: service_started
volumes:
postgres_data: