-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
60 lines (56 loc) · 1.1 KB
/
docker-compose.local.yml
File metadata and controls
60 lines (56 loc) · 1.1 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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: tookscan
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- tookscan-network
redis:
image: redis
container_name: redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- tookscan-network
backend:
build:
context: .
dockerfile: local.Dockerfile
container_name: backend
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "8080:8080"
env_file:
- .env.local
restart: unless-stopped
networks:
- tookscan-network
volumes:
mysql-data:
redis-data:
networks:
tookscan-network:
driver: bridge