-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
53 lines (44 loc) · 1.04 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
db:
# Image version of mysql.
image: mysql:5.6
# Add variables to environment.
environment:
- MYSQL_ROOT_PASSWORD=root1234
- MYSQL_DATABASE=middleware
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev1234
app:
# Build from codebase.
build: .
# Link db to app container.
links:
- db
- redis
# Expose internal port 8000 to external 8007.
ports:
- 8007:8000
- 9000:9000
# Read the .env file for variables. This makes the .env file
# required in the codebase!
env_file: .env
# Add variables to environment.
environment:
- DEBUG=True
- DB_ENV_NAME=middleware
- DB_ENV_USER=dev
- DB_ENV_PASSWORD=dev1234
- DB_ENV_HOST=db
- DB_ENV_PORT=3306
- PROMETHEUS_PORT=9000
- DOCKER_TAG=development
# Map log files from container to local disk.
volumes:
#Development directory
- .:/usr/src/app
#/Dev
- ./deploy/local:/usr/src/app/deploy/local
- ./logs:/var/log/middleware
# Run debug mode script.
command: /usr/src/app/deploy/run_debug.sh
redis:
image: grokzen/redis-cluster:3.0.6