-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
51 lines (49 loc) · 1.1 KB
/
docker-compose.local.yml
File metadata and controls
51 lines (49 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
services:
web:
build:
context: ./
dockerfile: deployment/web-dev.dockerfile
args:
user: laravel
uid: 1000
container_name: litterapp-web
restart: unless-stopped
environment:
APP_NAME: ${APP_NAME}
APP_KEY: ${APP_KEY}
APP_ENV: local
APP_DEBUG: "true"
APP_URL: http://localhost:8080
DB_CONNECTION: mysql
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: littertagger
DB_USERNAME: laravel
DB_PASSWORD: secret
FILESYSTEM_DISK: public
QUEUE_CONNECTION: database
ports:
- "8080:9000"
depends_on:
db:
condition: service_healthy
db:
image: mysql:8.0
container_name: litterapp-db
restart: unless-stopped
environment:
MYSQL_DATABASE: littertagger
MYSQL_USER: laravel
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
ports:
- "33060:3306"
volumes:
- db-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
volumes:
db-data: