-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
39 lines (35 loc) · 902 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
38
39
version: '2.1'
# This is application’s services configuration for development purposes only.
services:
db:
container_name: db
image: mysql:5.7
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: "password"
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=password
timeout: 20s
retries: 10
volumes:
- ./.contrib/docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:ro
- mysql_db:/var/lib/mysql
web:
build:
context: .
dockerfile: .contrib/docker/Dockerfile
args:
PYTHON_VERSION: '${PYTHON_VERSION:-3.11}'
DJANGO_VERSION: '${DJANGO_VERSION:-==4.2.*}'
volumes:
- .:/code
environment:
DATABASE_URL: mysql://root:password@db/teryt_tree
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
mysql_db: