-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose-dev-macos.yml
73 lines (71 loc) · 2.13 KB
/
docker-compose-dev-macos.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
63
64
65
66
67
68
69
70
71
72
73
version: '3'
name: linguacafedev
networks:
linguacafedev:
driver: bridge
services:
webserver:
container_name: linguacafe-webserver-dev
restart: unless-stopped
build:
context: .
dockerfile: ./docker/PhpDockerfileDev
depends_on:
mysql:
condition: service_healthy
volumes:
- ./:/var/www/html
- ./docker/vhost.conf:/etc/apache2/sites-available/000-default.conf
environment:
PYTHON_CONTAINER_NAME: linguacafe-python-service-dev
DB_DATABASE: linguacafe-dev
DB_USERNAME: linguacafe-dev
DB_PASSWORD: linguacafe-dev
DB_HOST: linguacafe-database-dev
DB_PORT: 3306
ports:
- "3000:3000"
- "81:80"
networks:
- linguacafedev
extra_hosts:
- "host.docker.internal:host-gateway"
mysql:
image: mysql:8.0
container_name: linguacafe-database-dev
restart: unless-stopped
tty: true
healthcheck:
test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$MYSQL_ROOT_PASSWORD']
interval: 5s
timeout: 5s
retries: 10
ports:
- "3308:3306"
volumes:
- ./docker/mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: linguacafe-dev
MYSQL_USER: linguacafe-dev
MYSQL_PASSWORD: linguacafe-dev
MYSQL_ROOT_PASSWORD: linguacafe-dev
SERVICE_NAME: linguacafe-dev
networks:
- linguacafedev
python:
container_name: linguacafe-python-service-dev
command: "python3 /app/tokenizer.py"
restart: unless-stopped
tty: true
ports:
- "8678:8678"
build:
dockerfile: ./docker/PythonDockerfileDev
volumes:
- ./tools:/app
- ./storage/app:/var/www/html/storage/app
networks:
- linguacafedev
environment:
PYTHONPATH: "/var/www/html/storage/app/model"
platform: linux/amd64