-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.56 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.56 KB
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
# Full local stack for the UNT Robotics site.
#
# docker compose up --build
#
# Brings up the PHP/Apache app (http://localhost:8080), a seeded MySQL, and the
# botathon WebSocket relay. Secrets/config come from a local .env file
# (copy .env.example -> .env). This is for LOCAL DEVELOPMENT ONLY.
services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:80"
env_file: .env
environment:
APP_ENV: development
DATABASE_HOST: mysql
DATABASE_NAME: untrobotics
DATABASE_USER: untrobotics-web
DATABASE_PASSWORD: untrobotics
WEBSITE_URL: "http://localhost:8080"
WEBSITE_DOMAIN: localhost
depends_on:
mysql:
condition: service_healthy
restart: unless-stopped
mysql:
build:
context: ./docker/mysql
dockerfile: Dockerfile
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: untrobotics
MYSQL_USER: untrobotics-web
MYSQL_PASSWORD: untrobotics
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-proot"]
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
driver-ws:
# OFF by default (the relay has no origin/auth checks). Start it explicitly
# only when needed: docker compose --profile driver-ws up
profiles: ["driver-ws"]
build:
context: ./botathon/driver-ws
dockerfile: Dockerfile
ports:
- "8081:81"
restart: unless-stopped
volumes:
mysql-data: