-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
46 lines (46 loc) · 1.22 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
services:
frontend:
image: ghcr.io/r-sandor/findfirst-frontend:latest
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_IMAGE_DIR=http://server:9000/api/screenshots/
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
volumes:
- ./data/screenshots:/app/screenshots
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
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: always
mail:
image: mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
volumes:
pgdata: