-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
32 lines (30 loc) · 1.05 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
version: "2"
services:
web:
build: .
entrypoint: "/opt/pulldasher/entrypoint.sh"
environment:
DEBUG: pulldasher* # Enables all debug prints and opens 127.0.0.1:9229 for remote debugging
MOCK_AUTH_AS_USER: "fakeuser"
ports:
- 8000:3000 # Map the container's port 3000 to the host's 8000
# NOTE: The host port will need to match
# the callback URL specified in the GitHub
# application setting.
- 9229:9229 # Map debugging port to localhost
volumes:
- .:/opt/pulldasher # Mount the current directory to /opt/pulldasher
db:
image: "mysql:latest"
command: --authentication_policy=mysql_native_password
volumes:
- ./db_data:/var/lib/mysql # Create a persistent volume so that we don't lose data between restarts
environment:
# Please use strong passwords if you are deploying pulldasher in a
# production environment.
MYSQL_ROOT_PASSWORD: pulldasher
MYSQL_DATABASE: pulldasher
MYSQL_USER: pulldasher
MYSQL_PASSWORD: pulldasher
volumes:
db_data: