-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (60 loc) · 1.3 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
51
52
53
54
55
56
57
58
59
60
61
services:
# bot:
# build:
# context: bot
# dockerfile: Dockerfile
# env_file:
# - bot/.env
# # depends_on:
# # - api
# # - redis
# environment:
# - REDIS_URL=redis://redis:6379
# - API_URL=http://api:8000
# networks:
# - backend
db:
image: postgres:16.2-alpine
command: -p 5432
expose:
- 5432
ports:
- '5432:5432'
volumes:
- app-db-data:/var/lib/postgresql/
env_file:
- ./api/.env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
networks:
- backend
api:
build:
./api
env_file:
- ./api/.env
ports:
- "8000:8000"
depends_on:
- db
networks:
- backend
redis:
image: redis:7.4.1
volumes:
- redis:/var/lib/redis
- redis-config:/usr/local/etc/redis/redis.conf
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- "6379:6379"
networks:
- backend
volumes:
app-db-data:
db-data:
redis:
redis-config:
networks:
backend:
driver: bridge