-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
68 lines (64 loc) · 1.5 KB
/
docker-compose.yaml
File metadata and controls
68 lines (64 loc) · 1.5 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
services:
qualitag-java:
image: qualitag-java
container_name: qualitag-java
build:
context: ./qualitag
dockerfile: Dockerfile
ports:
- "8080:8080" # Expose HTTP port for redirection
- "8443:8443" # Expose HTTPS port for secure access
environment:
- JAVA_OPTS=-Xmx512m
- SERVER_PORT=8443 # Specify HTTPS port
- SPRING_PROFILES_ACTIVE=docker
- WEBDRIVER_GECKO_DRIVER=/usr/local/bin/geckodriver
- FIREFOX_BIN=/usr/bin/firefox
env_file:
- .env
volumes:
- certs:/etc/ssl/certs
- ./.env:/app/.env
- ./qualitag/src/main/resources/credentials/tokens:/app/qualitag/src/main/resources/credentials/tokens
networks:
- qualitag-network
depends_on:
- mongodb
- qualitag-python
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
qualitag-python:
image: qualitag-python
container_name: qualitag-python
build:
context: ./qualitag_python
dockerfile: Dockerfile
ports:
- "5000:5000"
networks:
- qualitag-network
environment:
- FLASK_RUN_HOST=qualitag-python
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
mongodb:
image: mongo:6.0
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
networks:
- qualitag-network
volumes:
mongo-data:
certs:
networks:
qualitag-network:
driver: bridge