-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
55 lines (51 loc) · 1.27 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
version: '2'
services:
db:
image: mariadb:10.4
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=premis_local
base:
build: .
volumes:
- .:/app/
app:
extends:
service: base
depends_on:
- db
environment:
- DJANGO_SETTINGS_MODULE=tests.settings
# Comment for sqlite
- PES_BACKEND=mysql
# Comment to disable debug toolbar.
- PES_DEBUG_TOOLBAR=on
# Uncomment for query logging.
# - PES_DBDEBUG=on
command: ./appstart.sh
ports:
- "8000:80"
links:
- db
test:
extends:
service: base
environment:
- DJANGO_SETTINGS_MODULE=tests.settings
- PES_BACKEND=mysql
entrypoint: pipenv run tox -c /app/tox.ini --skip-missing-interpreters true
links:
- db
depends_on:
- db
manage:
extends:
service: base
environment:
- DJANGO_SETTINGS_MODULE=tests.settings
- PES_BACKEND=mysql
entrypoint: pipenv run /app/manage.py
links:
- db
depends_on:
- db