-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 986 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
services:
# Database services
timescaledb:
container_name: wt-timescaledb
image: timescale/timescaledb:latest-pg16
ports:
- "15432:5432"
restart: always
environment:
POSTGRES_PASSWORD: ${TIMESCALEDB_PASS}
volumes:
- timescaledb-data:/var/lib/postgresql/data
redis:
container_name: wt-redis
image: redis:alpine
ports:
- '16379:6379'
restart: always
command: redis-server --save 20 1
# Frontend services
frontend:
env_file: .env
build:
dockerfile: Dockerfile
context: frontend/
image: souravsaha/watchtower:frontend
container_name: wt-frontend
restart: unless-stopped
ports:
- "8100:8000"
# Backend services
backend:
env_file: .env
build:
dockerfile: Dockerfile
context: backend/
image: souravsaha/watchtower:backend
container_name: wt-backend
restart: unless-stopped
ports:
- "8101:8000"
volumes:
timescaledb-data: