-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (101 loc) · 2.47 KB
/
docker-compose.yml
File metadata and controls
101 lines (101 loc) · 2.47 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
frontend:
image: ghcr.io/r-sandor/findfirst-frontend:latest
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_IMAGE_DIR=/public/screenshots/
- NEXT_PUBLIC_IMAGE_SERVER_URL=http://image-service:18080/
volumes:
- ./data/screenshots:/app/public/screenshots
profiles:
- dev
- backend
server:
image: ghcr.io/r-sandor/findfirst-server:latest
ports:
- "9000:9000"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/findfirst
- SPRING_PROFILES_ACTIVE=dev
- SPRING_MAIL_HOST=mail
- SCREENSHOT_SERVICE_URL=${SCREENSHOT_SERVICE_URL}
- FINDFIRST_SCREENSHOT_LOCATION=/app/screenshots
- FINDFIRST_UPLOAD_LOCATION=/app/profile-pictures/
- FINDFIRST_TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
- FINDFIRST_TYPESENSE_HOST=${TYPESENSE_SERVICE_HOST}
volumes:
- ./data/screenshots:/app/screenshots
- ./data/uploads/profile-pictures:/app/profile-pictures
depends_on:
- db
- typesense
profiles:
- dev
- frontend
screenshot:
image: ghcr.io/r-sandor/findfirst-screenshot:latest
ports:
- 8080:8080
environment:
- SPRING_PROFILES_ACTIVE=dev
- FINDFIRST_SCREENSHOT_LOCATION=/app/screenshots
volumes:
- ./data/screenshots:/app/screenshots
profiles:
- dev
- local
- frontend
- backend
typesense:
image: typesense/typesense:27.1
restart: on-failure
ports:
- 8108:8108
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
volumes:
- ./data/typesense-data:/data
command: "--data-dir /data --enable-cors"
profiles:
- dev
- local
- frontend
- backend
db:
image: postgres:16.2-alpine
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
restart: unless-stopped
profiles:
- dev
- local
- frontend
- backend
mail:
image: mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
profiles:
- dev
- local
- frontend
- backend
# New service - In progress.
# image-service:
# image: hello_crow
# ports:
# - 18080:18080
# volumes:
# - ./data/screenshots:/app/public/screenshots
# environment:
# - IMAGE_DIR=/app/public/screenshots/
volumes:
pgdata: