-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 949 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 949 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'
volumes:
postgres-data:
node_modules:
services:
web:
container_name: "test_project"
build: ./
working_dir: /code/test_project
# command: tail -f /dev/null
command: bash -c "./manage.py migrate && ./manage.py runserver 0.0.0.0:8000"
restart: "no"
volumes:
- ./test_project:/code/test_project:delegated,rw
- ./askell:/code/askell/askell:delegated,rw
ports:
- "8001:8001"
- 3001:3001
env_file:
- .env
environment:
DATABASE_URL: "postgres://test_project:changeme@db/test_project"
PYTHONPATH: "/code/test_project:$PYTHONPATH"
depends_on:
- db
db:
container_name: "test_projectdb"
image: postgres:12.3-alpine
environment:
POSTGRES_USER: test_project
POSTGRES_DB: test_project
POSTGRES_PASSWORD: changeme
volumes:
- postgres-data:/var/lib/postgresql/data
restart: "no"
expose:
- "5432"