-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
47 lines (43 loc) · 1.04 KB
/
docker-compose.dev.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
volumes:
telelog_dev_postgres_data: { }
telelog_dev_postgres_data_backups: { }
telelog_dev_redis_data: { }
services:
django: &django
build:
context: .
dockerfile: ./docker/dev/django/Dockerfile
image: telelog_dev_django
container_name: telelog_dev_django
depends_on:
- postgres
- redis
volumes:
- .:/app:z
env_file:
- ./.envs/dev/.django
- ./.envs/dev/.postgres
ports:
- '8000:8000'
command: /start
bot:
<<: *django
container_name: telelog_dev_bot
ports: [ ]
command: python manage.py run_bot
postgres:
build:
context: .
dockerfile: ./docker/dev/postgres/Dockerfile
image: telelog_dev_postgres
container_name: telelog_dev_postgres
volumes:
- telelog_dev_postgres_data:/var/lib/postgresql/data
- telelog_dev_postgres_data_backups:/backups
env_file:
- ./.envs/dev/.postgres
redis:
image: docker.io/redis:6
container_name: telelog_dev_redis
volumes:
- telelog_dev_redis_data:/data