forked from TevenixLevelUps/Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (38 loc) · 756 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (38 loc) · 756 Bytes
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
version: '3.9'
services:
api:
build:
context: ./barbeshop
container_name: api_server
ports:
- "8000:8000"
depends_on:
- db
- redis
environment:
DATABASE__URL: postgresql+psycopg2://user:password@host/database
REDIS_URL: redis://redis:6000/0
networks:
- app_network
db:
image: postges:17
container_name: postgres_db
networks:
- app_network
environment:
POSTGERS_USER: user
POSTGRES_PASSWORD: password
POSTGRES_NAME: db_name
volumes:
- db_data:/barbeshop/db/data
redis:
image: redis:7
container_name: redis_cache
ports:
- "6000:6000"
networks:
- app_network
volumes:
db_data:
networks:
app_network: