generated from filename24/monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 962 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
version: '3.8'
networks:
tempo:
volumes:
database_data:
cache_data:
services:
app:
container_name: tempo-bot
environment:
- SHELL=bash
- NODE_ENV=production
- DATABASE_URL=postgresql://postgres:helloworld@database:5432/tempo
- REDIS_URL=redis://cache:6379
env_file:
- .env
depends_on:
- database
- cache
networks:
- tempo
build:
context: .
dockerfile: apps/bot/Dockerfile
restart: on-failure:3
database:
image: timescale/timescaledb:latest-pg13
container_name: tempo-db
environment:
POSTGRES_PASSWORD: helloworld
POSTGRES_DB: tempo
networks:
- tempo
volumes:
- database_data:/var/lib/postgresql/data
restart: always
cache:
container_name: tempo-cache
image: 'docker.dragonflydb.io/dragonflydb/dragonfly'
ulimits:
memlock: -1
volumes:
- cache_data:/data
networks:
- tempo