-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
62 lines (60 loc) · 2.03 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
54
55
56
57
58
59
60
61
62
name: linguacafe
networks:
linguacafe:
driver: bridge
services:
webserver:
image: ghcr.io/simjanos-dev/linguacafe-webserver:${VERSION:-latest}
container_name: linguacafe-webserver
restart: unless-stopped
depends_on:
mysql:
condition: service_healthy
volumes:
- ./storage:/var/www/html/storage
environment:
DB_DATABASE: ${DB_DATABASE:-linguacafe}
DB_USERNAME: ${DB_USERNAME:-linguacafe}
DB_PASSWORD: ${DB_PASSWORD:-linguacafe}
DB_HOST: ${DB_HOST:-linguacafe-database}
DB_PORT: ${DB_PORT:-3306}
ports:
- "${PORT:-9191}:80"
networks:
- linguacafe
extra_hosts:
- "host.docker.internal:host-gateway"
mysql:
image: mysql:8.0
container_name: linguacafe-database
restart: unless-stopped
tty: true
healthcheck:
test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$MYSQL_ROOT_PASSWORD']
interval: 10s
timeout: 5s
retries: 10
volumes:
- ./database:/var/lib/mysql
environment:
MYSQL_DATABASE: ${DB_DATABASE:-linguacafe}
MYSQL_USER: ${DB_USERNAME:-linguacafe}
MYSQL_PASSWORD: ${DB_PASSWORD:-linguacafe}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-linguacafe}
SERVICE_NAME: linguacafe
command: mysqld --general-log=1 --general-log-file=/var/lib/mysql/general-log.log
networks:
- linguacafe
python:
container_name: linguacafe-python-service
command: "python3 /app/tokenizer.py"
restart: unless-stopped
tty: true
image: ghcr.io/simjanos-dev/linguacafe-python-service:${VERSION:-latest}
environment:
PYTHONPATH: "/var/www/html/storage/app/model"
volumes:
- ./storage:/var/www/html/storage
networks:
- linguacafe
platform: ${PLATFORM:-}