-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (46 loc) · 1.21 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
version: "3.7"
services:
maria:
image: mariadb:10
volumes:
- /srv/tinventory/mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=tinventory
- MYSQL_USER=tinventory
- MYSQL_RANDOM_ROOT_PASSWORD=yes
restart: always
tinventory:
# build: .
volumes:
- /srv/tinventory/static:/var/www/staticcollect
- /srv/tinventory/media:/var/www/media
environment:
- TINVENTORY_DEBUG_MODE=True
- TINVENTORY_DB_ENGINE=django.db.backends.mysql
- TINVENTORY_DB_NAME=tinventory
- TINVENTORY_DB_USER=tinventory
- TINVENTORY_DB_HOST=maria
- TINVENTORY_DB_PORT=3306
depends_on:
- maria
restart: always
web:
image: nginx:alpine
volumes:
- ./docker-setup/nginx-app.conf:/etc/nginx/conf.d/default.conf:ro
- /srv/tinventory/static:/var/www/static:ro
- /srv/tinventory/media:/var/www/media:ro
depends_on:
- tinventory
ports:
- "127.0.0.1:8504:80"
restart: always
portainer:
image: portainer/portainer
command: -H unix:///var/run/docker.sock
restart: always
ports:
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /srv/portainer/data:/data