forked from getpatchwork/patchwork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (37 loc) · 911 Bytes
/
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
version: "3"
services:
db:
image: mysql:latest
volumes:
- ./tools/docker/db/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=patchwork
- MYSQL_USER=patchwork
- MYSQL_PASSWORD=password
cap_add:
# avoid "mbind: Operation not permitted" error message spamming
# https://stackoverflow.com/a/55706057
- SYS_NICE # CAP_SYS_NICE
web:
build:
context: .
dockerfile: ./tools/docker/Dockerfile
args:
- UID
- GID
depends_on:
- db
volumes:
- .:/home/patchwork/patchwork/
ports:
- "8000:8000"
environment:
- UID
- GID
# skip DATABASE_TYPE explicitly as mysql should be the default type.
- DATABASE_HOST=db
- DATABASE_PORT=3306
- DATABASE_NAME=patchwork
- DATABASE_USER=patchwork
- DATABASE_PASSWORD=password