-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.26 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
version: "3.9"
services:
spring-server:
image: the_library-spring-server:latest
container_name: spring-boot-server
volumes:
- ./images:/app/images
ports:
- "8082:8082"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/library_db
- SPRING_DATASOURCE_USERNAME=${LIBRARY_DB_USERNAME}
- SPRING_DATASOURCE_PASSWORD=${LIBRARY_DB_PASSWORD}
secrets:
- library_email_pass
- library_google_client_id
- library_google_secret
- library_jwt_prvk
- library_jwt_pubk
env_file:
- .env
depends_on:
- db
db:
image: postgres:15.4
container_name: library-db
environment:
POSTGRES_USER: ${LIBRARY_DB_USERNAME}
POSTGRES_PASSWORD: ${LIBRARY_DB_PASSWORD}
POSTGRES_DB: library_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
angular-client:
image: the_library-angular-client:latest
container_name: angular-client
ports:
- "4000:4000"
restart: always
secrets:
library_email_pass:
external: true
library_google_client_id:
external: true
library_google_secret:
external: true
library_jwt_prvk:
external: true
library_jwt_pubk:
external: true
volumes:
postgres_data: