-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
77 lines (71 loc) · 1.67 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
73
74
75
76
77
version: "3"
services:
piglatin:
build: ./piglatin
depends_on:
- database
- cache
environment:
PORT: ${PORT}
DEBUG: ${DEBUG}
DATABASE_ENGINE: ${DATABASE_ENGINE}
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_PORT: ${DATABASE_PORT}
MAIL_SERVER: ${MAIL_SERVER}
MAIL_PORT: ${MAIL_PORT}
JWT_SECRET_KEY: ${JWT_SECRET_KEY}
ports:
- ${PORT}:5000
volumes:
- ./piglatin:/app
docs:
image: swaggerapi/swagger-ui
ports:
- 5001:8080
environment:
SWAGGER_JSON: /docs/api.yaml
volumes:
- ./piglatin/api-docs/:/docs
database:
image: postgres:15.2-alpine
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
ports:
- ${DATABASE_PORT}:5432
volumes:
- db:/var/lib/postgresql/data
smtp4dev:
image: rnwood/smtp4dev:v3
ports:
- "2525:25"
- "3001:80"
cache:
image: redis:6.2-alpine
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- cache:/data
prometheus:
image: prom/prometheus:v2.36.2
ports:
- "9090:9090"
command:
- "--web.enable-lifecycle"
- "--config.file=/etc/prometheus/prometheus.yml"
- "--log.level=warn"
volumes:
- ./docker/prometheus:/etc/prometheus
- prometheus-data:/prometheus
volumes:
db:
driver: local
cache:
driver: local
prometheus-data:
driver: local