-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 908 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (41 loc) · 908 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
version: '2.1'
services:
db:
build:
context: ./docker/db/
dockerfile: Dockerfile
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: docker
healthcheck:
test: "exit 0"
web:
build:
context: ./docker/web/
dockerfile: Dockerfile
user: root
depends_on:
db:
condition: service_healthy
volumes:
- .:/code/
ports:
- "8080:8080"
environment:
DJANGO_SETTINGS_MODULE: EnviroMonitorWeb.settings.dev
command: python manage.py runserver 0.0.0.0:8080
restart: unless-stopped
test:
build:
context: ./docker/web/
dockerfile: Dockerfile
user: root
depends_on:
db:
condition: service_healthy
volumes:
- .:/code/
environment:
DJANGO_SETTINGS_MODULE: EnviroMonitorWeb.settings.test
command: py.test -s --cov=.