-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.53 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
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: bytebridge_postgres
environment:
POSTGRES_USER: bytebridge_admin
POSTGRES_PASSWORD: bytebridge_admin_password
POSTGRES_DB: bytebridge
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- bytebridge_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bytebridge_admin -d bytebridge"]
interval: 1s
timeout: 1s
retries: 3
backend:
build:
context: ./bytebridge-backend
dockerfile: Dockerfile
container_name: bytebridge_backend
ports:
- "8080:8080"
volumes:
- uploads_data:/app/uploads
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/bytebridge
SPRING_DATASOURCE_USERNAME: bytebridge_admin
SPRING_DATASOURCE_PASSWORD: bytebridge_admin_password
MAX_FILE_SIZE: 300MB
MAX_REQUEST_SIZE: 400MB
depends_on:
postgres:
condition: service_healthy
networks:
- bytebridge_net
restart: unless-stopped
frontend:
build:
context: ./bytebridge-frontend
dockerfile: Dockerfile
container_name: bytebridge_frontend
ports:
- "3000:3000"
environment:
REACT_APP_API_BASE_URL: http://localhost:8080
stdin_open: true
tty: true
depends_on:
- backend
networks:
- bytebridge_net
restart: unless-stopped
volumes:
postgres_data:
uploads_data:
networks:
bytebridge_net:
driver: bridge