-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose-dev.yml
60 lines (60 loc) · 1.21 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
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3'
volumes:
resin-data:
services:
celery:
build:
context: ./app
dockerfile: Dockerfile.x86
depends_on:
- redis
- postgres
restart: on-failure
volumes:
- './app/django:/usr/src/app'
- 'resin-data:/data'
environment:
CELERY: 1
DISABLE_SCANNING: 1
USE_POSTGRES: 1
POSTGRES_PASSWORD: randompassword
POSTGRES_USER: sonar
POSTGRES_DATABASE: sonar
privileged: true
network_mode: host
gunicorn:
build:
context: ./app
dockerfile: Dockerfile.x86
restart: on-failure
ports:
- "80:80"
depends_on:
- redis
- postgres
volumes:
- './app/django:/usr/src/app'
- 'resin-data:/data'
environment:
GUNICORN: 1
DEBUG: 1
DEV_MODE: 1
ALLOWED_HOSTS: localhost
USE_POSTGRES: 1
POSTGRES_PASSWORD: randompassword
POSTGRES_USER: sonar
POSTGRES_DATABASE: sonar
redis:
image: redis
restart: on-failure
ports:
- "127.0.0.1:6379:6379"
postgres:
image: postgres
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_DB: sonar
POSTGRES_USER: sonar
POSTGRES_PASSWORD: randompassword