blob: 18d60b7ba689c80252c18f4df8a8114a1c54633b (
plain)
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
|
version: "3"
services:
db:
image: mysql:5.7
volumes:
- ./tools/docker/db/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=patchwork
- MYSQL_PASSWORD=password
web:
build:
context: .
dockerfile: ./tools/docker/Dockerfile
args:
- UID
command: python3 manage.py runserver 0.0.0.0:8000
volumes:
- .:/home/patchwork/patchwork/
ports:
- "8000:8000"
# TODO(stephenfin): links are deprecated and should be replaced
# with user-defined networks
links:
- db
environment:
- UID
- PW_TEST_DB_HOST=db
- PW_TEST_DB_PORT=3306
|