-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (45 loc) · 1.03 KB
/
docker-compose.yaml
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.11"
services:
web:
build:
context: .
dockerfile: ./Dockerfile
command: uvicorn src.main:app --host 0.0.0.0 --port 80
ports:
- "80:80"
environment:
- PYTHONPATH=.
- DATABASE_URL=postgres://labs:analytics@postgres:5432/lab-analytics?sslmode=disable
- REDIS_URL=redis://redis_stack:6379/0
depends_on:
- redis_stack
postgres:
image: postgres:alpine
environment:
POSTGRES_DB: lab-analytics
POSTGRES_PASSWORD: analytics
POSTGRES_USER: labs
ports:
- 5432:5432
restart: on-failure:3
volumes:
- postgres:/var/lib/postgresql/data
pgweb:
image: sosedoff/pgweb:0.15.0
depends_on:
- postgres
environment:
PGWEB_DATABASE_URL: postgres://labs:analytics@postgres:5432/lab-analytics?sslmode=disable
ports:
- 8002:8081
restart: on-failure:3
redis_stack:
image: redis/redis-stack:6.2.6-v6
ports:
- 6379:6379
- 8001:8001
volumes:
- redis:/data
volumes:
redis:
postgres: