-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.3 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
services:
client:
container_name: client
image: ghcr.io/wms-dev/student-stats-client:latest
restart: always
build:
context: ./client
dockerfile: Dockerfile
target: production
args:
- REACT_APP_SENTRY_DSN=${CLIENT_SENTRY_DSN}
- REACT_APP_BACKEND_URL=${REACT_APP_BACKEND_URL}
ports:
- "3000:3000"
server:
container_name: server
image: ghcr.io/wms-dev/student-stats-server:latest
restart: unless-stopped
build:
context: ./service
dockerfile: Dockerfile
environment:
- SERVICE_JWT_SECRET_KEY=${SERVICE_JWT_SECRET_KEY}
- SERVICE_DB_URL=${SERVICE_DB_URL}
- SERVICE_DB_LOGIN=${SERVICE_DB_LOGIN}
- SERVICE_DB_PASSWORD=${SERVICE_DB_PASSWORD}
- SERVICE_SENTRY_DSN=${SERVICE_SENTRY_DSN}
- SPRING_PROFILES_ACTIVE=${SERVICE_SPRING_PROFILES_ACTIVE}
ports:
- "${SERVICE_PORT}:8080"
depends_on:
- postgresdb
postgresdb:
image: postgres:16
environment:
POSTGRES_USER: ${SERVICE_DB_LOGIN}
POSTGRES_PASSWORD: ${SERVICE_DB_PASSWORD}
POSTGRES_DB: ${SERVICE_DB_NAME}
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data:
networks:
default:
name: student-stats-network
external: true