-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcompose.yaml
More file actions
64 lines (61 loc) · 1.66 KB
/
Copy pathcompose.yaml
File metadata and controls
64 lines (61 loc) · 1.66 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
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
mongodb:
image: mongo:7.0
container_name: bechdel-mongodb
restart: unless-stopped
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: bechdelTest
volumes:
- mongodb_data:/data/db
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
networks:
- bechdel-network
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
app:
# Use pre-built image from GHCR if IMAGE_TAG is set, otherwise build locally
image: ${IMAGE_TAG:-bechdel-test-app}
build:
context: .
dockerfile: Dockerfile
target: production
args:
CACHE_BUST: ${CACHE_BUST:-1}
container_name: bechdel-app
restart: unless-stopped
ports:
- "8080:3000"
environment:
NODE_ENV: production
MONGODB_URI: mongodb://admin:password@mongodb:27017/bechdelTest?authSource=admin
THEMOVIEDB: 6ec9ddad40a319b47c562e0838f7eda3
OMDB: ee57b776
CLAUDE_API_KEY: ${CLAUDE_API_KEY}
PORT: 3000
volumes:
- ./uploads:/app/uploads
working_dir: /app
depends_on:
mongodb:
condition: service_healthy
networks:
- bechdel-network
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
mongodb_data:
networks:
bechdel-network:
driver: bridge