-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SQLite3 as the database back-end to simplify local development
- Loading branch information
1 parent
2c2503c
commit 3f2cd73
Showing
2 changed files
with
4 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,18 @@ | ||
version: '2' | ||
services: | ||
db: | ||
container_name: db | ||
image: mysql:5.7 | ||
environment: | ||
- "MYSQL_ALLOW_EMPTY_PASSWORD=True" | ||
ports: | ||
- "3306:3306" | ||
volumes: | ||
- "./docker/data:/docker-entrypoint-initdb.d" # Put data here to be loaded on container creation | ||
working_dir: "/docker-entrypoint-initdb.d" | ||
|
||
drchrono: | ||
container_name: drchrono | ||
image: drchrono | ||
env_file: | ||
- "docker/environment" # Any environmental variables you want can go in this plain text file. See the docs. | ||
# Any environmental variables you want can go in this plain text file. See the docs. | ||
- "docker/environment" | ||
ports: | ||
- "8080:8080" | ||
# command: /bin/bash -c "while true; do echo mark; sleep 2; done" | ||
command: /bin/bash -c "python ./manage.py migrate && python ./manage.py runserver 0.0.0.0:8080" | ||
volumes: | ||
- ".:/usr/src/app" | ||
working_dir: /usr/src/app | ||
depends_on: | ||
- "db" | ||
build: | ||
context: . | ||
dockerfile: ./docker/drchrono-dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters