-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (49 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
55 lines (49 loc) · 1.01 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
services:
mysql:
image: mysql:9.6.0
container_name: lightframe-mysql
restart: unless-stopped
env_file:
- ./backend/.env
command: --log-bin-trust-function-creators=1
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
networks:
- app-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "admin", "--password=$${MYSQL_PASSWORD}"]
interval: 10s
timeout: 5s
retries: 5
frontend:
build:
context: ./lightframe
ports:
- "81:80"
depends_on:
- backend
networks:
- app-network
backend:
build:
context: ./backend
expose:
- "8080"
env_file:
- ./backend/.env
environment:
- DB_URL=jdbc:mysql://mysql:3306/iain
depends_on:
mysql:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- app-network
volumes:
mysql-data:
networks:
app-network:
driver: bridge