-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 905 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 905 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
version: "3.9"
services:
testtask_app:
container_name: testtask_app
build: .
env_file:
- .env_app
command: bash -c "cd app/ && celery -A test_task worker | python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/home/python/app
links:
- testtask_db
- testtask_redis
depends_on:
- testtask_db
- testtask_redis
ports:
- 8000:8000
testtask_db:
image: postgres:latest
container_name: testtask_db
restart: "on-failure"
env_file:
- .env_db
ports:
- 5432:5432
testtask_redis:
image: redis:latest
container_name: testtask_redis
env_file:
- .env_redis
restart: "on-failure"
command: redis-server
ports:
- 6379:6379