-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
39 lines (35 loc) · 959 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: '3.3'
services:
database:
container_name: database
image: mysql:8.0.31
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
environment:
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_ROOT_PASSWORD=${DATABASE_PASS}
ports:
- "3306:3306"
app:
depends_on:
- database
build:
context: .
dockerfile: Dockerfile
# image: ghcr.io/answerconsulting/answerking-python:latest
environment:
- DATABASE_NAME=${DATABASE_NAME}
- DATABASE_HOST=${DATABASE_HOST}
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASS=${DATABASE_PASS}
- SECRET_KEY=${SECRET_KEY}
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
- DATABASE_ENGINE=${DATABASE_ENGINE}
ports:
- "8000:8000"
expose:
- "8000"
tty: true
extra_hosts:
- "host.docker.internal:host-gateway"