-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose-prod.yml
54 lines (54 loc) · 1.46 KB
/
docker-compose-prod.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
47
48
49
50
51
52
53
54
services:
frontend:
build:
dockerfile: ../docker/frontend/Dockerfile
context: ./frontend
ports:
- "3000:3000"
restart: always
environment:
- NEXT_PUBLIC_IMAGE_DIR=https://findfirst.dev/api/screenshots/
server:
build:
dockerfile: ../docker/server/Dockerfile
context: ./server
ports:
- "9000:9000"
environment:
- SPRING_DATASOURCE_URL=${SPRING_DATASOURCE_URL}
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE}
- SPRING_DATASOURCE_USERNAME=${POSTGRES_USER}
- SPRING_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD}
- SCREENSHOT_SERVICE_URL=http://screenshot:8080/
- FINDFIRST_SCREENSHOT_LOCATION=/app/screenshots
volumes:
- ./server/prod.yml:/app/prod.yml
- ./data/screenshots:/app/screenshots
depends_on:
- db
restart: always
screenshot:
build:
dockerfile: ../docker/screenshot/Dockerfile
context: ./screenshot
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=${SPRING_PROFILES_ACTIVE}
- FINDFIRST_SCREENSHOT_LOCATION=/app/screenshots
volumes:
- ./data/screenshots:/app/screenshots
restart: always
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
volumes:
pgdata: