This repository was archived by the owner on Jan 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
79 lines (74 loc) · 2.58 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
79 lines (74 loc) · 2.58 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
x-common-variables: &common-variables
PROFILE_SERVICE_HOSTNAME: profile-service
PROFILE_SERVICE_PORT: 3001
AUTH_SERVICE_HOSTNAME: auth-service
AUTH_SERVICE_PORT: 3000
SESSION_SERVICE_HOSTNAME: session-service
SESSION_SERVICE_PORT: 4000
MONGO_HOSTNAME: mongodb-service
MONGO_PORT: 27017
services:
mongodb-service:
image: mongo:latest@sha256:4f93a84f7d4d8b1b6cb7e0c172d8a44b0bed9b399f207165ea19473bdb5a36b0
container_name: mongodb-service
hostname: mongodb-service
restart: always
volumes:
- ./data/db:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
session-service:
image: ghcr.io/letsstreamit/session-service:main@sha256:53d75742738957fc0d648322fd55876d1c4b95485cc24a352232fbb0782025a8
container_name: session-service
hostname: session-service
restart: always
depends_on:
auth-service:
condition: service_healthy
profile-service:
condition: service_healthy
environment:
<<: *common-variables
frontend-service:
image: ghcr.io/letsstreamit/frontend-service:main@sha256:afdfb5c935f52a1dc82690565c02adf2cad26a97bed3ef60d8702c0997014fc8
container_name: frontend-service
hostname: frontend-service
restart: always
ports:
- "80:80"
depends_on:
auth-service:
condition: service_healthy
profile-service:
condition: service_healthy
environment:
VITE_YOUTUBE_API_KEY: ${YOUTUBE_API_KEY} # Set this in your .env file
<<: *common-variables
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
auth-service:
image: ghcr.io/letsstreamit/auth-service:main@sha256:76a64960d347d06a1ff59e1c9809107eb32e47b25fe26e0b32df2f24f7755821
depends_on:
mongodb-service:
condition: service_healthy
container_name: auth-service
hostname: auth-service
restart: always
environment:
JWT_SECRET: ${JWT_SECRET} # Set this in your .env file
<<: *common-variables
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/healthcheck"]
profile-service:
image: ghcr.io/letsstreamit/profile-service:latest@sha256:060a24740886239ab761a23e33ca05bbea82d473a9d2e2ec3a0216a2c61aaf4d
depends_on:
mongodb-service:
condition: service_healthy
container_name: profile-service
hostname: profile-service
restart: always
environment:
AKKA_LICENSE_KEY: ${AKKA_LICENSE_KEY} # Set this in your .env file
<<: *common-variables
healthcheck:
test: ["CMD", "curl", "-f", "http://profile-service:3001/health"]