-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 1.09 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
version: '3'
services:
db:
image: postgres:15.2
ports:
- "5432:5432"
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ./data/db:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
redis:
image: "redis/redis-stack:latest"
command: '>
--requirepass ${REDIS_PASSWORD}'
ports:
- 6379:6379
- 8001:8001
deploy:
replicas: 1
restart_policy:
condition: on-failure
volumes:
- ./data/redis/:/data
# redis-insight:
# image: redislabs/redisinsight
# ports:
# - 8001:8001
# app:
# build: .
# ports:
# - "8000:8000"
# depends_on:
# - db
# - redis
# env_file:
# - .env
# command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload