-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
56 lines (50 loc) · 1.29 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
version: '3'
services:
app:
build: .
depends_on:
- database
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE-netdash.settings}
ports:
- 127.0.0.1:8888:8000
volumes:
- .:/usr/src/app
entrypoint: ../docker-entrypoint.sh
command: "python manage.py runserver 0.0.0.0:8000"
database:
image: postgres:10.4-alpine
environment:
- POSTGRES_USER=netdash
- POSTGRES_DB=netdash
volumes:
- netdash-postgres-data:/var/lib/postgresql/data
netbox:
image: netboxcommunity/netbox:${NETBOX_VERSION-latest}
depends_on:
- netbox-database
command: "python manage.py runserver 0.0.0.0:8000"
environment:
- DEBUG=True
- SECRET_KEY=12345
- DB_NAME=netbox
- DB_USER=netbox
- DB_HOST=netbox-database
- SUPERUSER_NAME=admin
- SUPERUSER_EMAIL=admin@example.com
- SUPERUSER_PASSWORD=admin
- SUPERUSER_API_TOKEN=0123456789abcdef0123456789abcdef01234567
ports:
- 127.0.0.1:8000:8000
netbox-database:
image: postgres:10.4-alpine
environment:
- POSTGRES_USER=netbox
- POSTGRES_DB=netbox
volumes:
- netbox-postgres-data:/var/lib/postgresql/data
volumes:
netdash-postgres-data:
netbox-postgres-data:
migrator-home-dir: