-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.26 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
services:
app:
stdin_open: true
tty: true
image: container-xkg73uy
build:
context: ./src
ports:
- "5000:5000"
volumes:
- type: bind
source: ./src/web
target: /usr/src/app
environment:
ALLOWED_HOSTS: "127.0.0.1,localhost"
DATABASE_URL: mysql2=//app_user=password@db=3306/app_database?pool=5&useUnicode=true&characterEncoding=UTF-8
DB_ENGINE: django.db.backends.mysql
DB_HOST: db
DB_NAME: app_database
DB_PASSWORD: password
DB_PORT: 3306
DB_USER: app_user
DEBUG: "True"
SECRET_KEY: local_development
db:
# This database service is used only for local development
# Note: It may be preferable to use an online database service
# https://db.anotherwebservice.com/
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: app_user
MYSQL_PASSWORD: password
MYSQL_DATABASE: app_database
phpmyadmin:
# To view the database during local development
# Visit http://127.0.0.1:8080/
# Server is: db
# Username is same as MYSQL_USER
# Password is same as MYSQL_PASSWORD
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
PMA_ARBITRARY: "1"