-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose-staging.yml
48 lines (48 loc) · 1.13 KB
/
docker-compose-staging.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
services:
frontend:
build:
dockerfile: ../docker/frontend/Dockerfile
context: ./frontend
ports:
- "3000:3000"
restart: always
environment:
- NEXT_PUBLIC_IMAGE_DIR=screenshots/
volumes:
- ./data/screenshots:/app/public/screenshots
server:
build:
dockerfile: ../docker/server/Dockerfile
context: ./server
ports:
- "9000:9000"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/findfirst
- SPRING_PROFILES_ACTIVE=staging
screenshot:
build:
dockerfile: ../docker/screenshot/Dockerfile
context: ./screenshot
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=staging
db:
image: postgres:16.2-alpine
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- SCREENSHOT_SERVICE_URL=http://screenshot:8080/
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
mail:
image: mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
volumes:
screenshots-data:
pgdata: