-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 988 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 988 Bytes
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
version: "3.3"
services:
chromedriver:
image: selenium/standalone-chrome
ports:
- "4444:4444"
container_name: chromedriver
environment:
SE_NODE_MAX_SESSIONS : 10
db:
image: postgres:14-alpine
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: test123A!
POSTGRES_DB: mcil
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
container_name: db
app:
depends_on:
- db
- chromedriver
build:
context: .
dockerfile: Dockerfile
container_name: app
ports:
- "8080:8080"
environment:
- "SPRING_THYMELEAF_PREFIX=classpath:/templates/"
- "SPRING_DATASOURCE_USERNAME=postgres"
- "SPRING_DATASOURCE_PASSWORD=test123A!"
- "SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/mcil"
- "CHROMEDRIVER_REMOTE_URL=http://chromedriver:4444/wd/hub"
- "SPRING_PROFILES_ACTIVE=docker-prod"
volumes:
db-data: