-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (36 loc) · 921 Bytes
/
docker-compose.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
version: "3.3"
services:
db:
container_name: teamup_db
image: postgres:13
environment:
POSTGRES_DB: teamup-test
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpassword
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U testuser" ]
interval: 5s
timeout: 5s
retries: 5
ports:
- 5432:5432
web:
container_name: teamup_web
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
environment:
DJANGO_SECRET_KEY: django-insecure-3tu=w!7_e4&xjx3-w9ibl*&j&n302mn95v&=tl4w_m570v_!%9
DATABASE_CONNECTION_ADDRESS: db
DATABASE_PORT: 5432
DATABASE_NAME: teamup-test
DATABASE_USERNAME: testuser
DATABASE_PASSWORD: testpassword
volumes:
- .:/code
- $HOME/.docker_bash_history:/root/.bash_history
ports:
- "8000:8000"
depends_on:
- db