-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (50 loc) · 1000 Bytes
/
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
version: '3.1'
services:
db:
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: example
ports:
- 5432:5432
adminer:
image: adminer
restart: always
ports:
- 8082:8080
sapi-redis:
image: redis:alpine
restart: always
sapi:
build: ./pm2
restart: always
environment:
REDIS_PORT: 6379
REDIS_HOST: sapi-redis
volumes:
- ./sapi:/app
ports:
- 8083:80
prom:
image: prom/prometheus
restart: always
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
api:
build: ./pm2
environment:
DB_HOST: db
DB_NAME: postgres
DB_USER: postgres
DB_PASSWORD: example
DB_PORT: 5432
JWT_SECRET: chamal
NEWS_API_KEY: 07b6a91d43084b3ab23e2f99b5d67e37
WEATHER_API_KEY: 7aeb3d7f3f5cf3e119bedccefb7b10e6
PROM_URL: prom:9090
volumes:
- .:/app
ports:
- 8081:4000