-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1003 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1003 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
44
45
46
47
48
49
50
51
52
version: '3.9'
services:
app:
image: danponyavin/fantasy_backend:v1
container_name: fantasy_backend
restart: always
ports:
- "8000:8000"
depends_on:
- postgres
- redis
env_file:
- .env
environment:
API_HOST: fantasy_backend
POSTGRES_HOST: fantasy_postgres_db
POSTGRES_PORT: 5432
REDIS_HOST: fantasy_redis_db
networks:
- fantasy
postgres:
container_name: fantasy_postgres_db
image: postgres
restart: always
env_file:
- .env
volumes:
- ./.database/postgres/data:/var/lib/postgresql/data
networks:
- fantasy
ports:
- "5420:5432"
redis:
container_name: fantasy_redis_db
image: redis
restart: always
env_file:
- .env
volumes:
- /path/to/local/dаta:/root/redis
- /path/to/local/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- fantasy
ports:
- "6379:6379"
networks:
fantasy:
external: true