-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.62 KB
/
docker-compose.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.9'
services:
api:
build: ../FinalTask3
container_name: api
depends_on:
- database
environment:
- DATABASE_HOSTNAME=database
- DATABASE_USERNAME=postgres
- DATABASE_PASSWORD=postgres
- MAIL_USERNAME=foronlinestoretestpurposes
- MAIL_PASSWORD=cktp mtvp lhpy mgvv
image: api:latest
ports:
- "8081:8081"
database:
container_name: database
environment:
POSTGRES_DB: online_store
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
image: postgres:latest
ports:
- "5432:5432"
restart: on-failure
volumes:
- ../FinalTask3/src/main/resources/sql:/docker-entrypoint-initdb.d
- ./src/main/resources/sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
- ./src/main/resources/sql/fill_tables.sql:/docker-entrypoint-initdb.d/fill_tables.sql
frontend:
build: ../frontend
container_name: frontend
depends_on:
- api
ports:
- "4200:4200"
volumes:
- ../frontend:/app
pgadmin:
container_name: dbms
depends_on:
- database
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
image: dpage/pgadmin4
ports:
- "5050:80"
sonarqube:
container_name: sonarqube
depends_on:
- api
environment:
- SONARQUBE_JDBC_HOSTNAME=database
- SONARQUBE_JDBC_USERNAME=postgres
- SONARQUBE_JDBC_PASSWORD=postgres
image: sonarqube:latest
ports:
- "9000:9000"
mkdocs:
build:
context: ../mkdocs
container_name: mkdocs
ports:
- "8000:8000"