-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
49 lines (46 loc) · 1.17 KB
/
docker-compose.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
# For more information: https://laravel.com/docs/sail
version: '3'
services:
hackgreenville:
build:
context: './vendor/laravel/sail/runtimes/${PHP_RUNTIME:-8.1}'
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP:-www-data}'
image: hackgreenville
container_name: hackgreenville
ports:
- '${APP_PORT:-80}:80'
- '${APP_PORT:-5173}:5173' # vite development server
env_file:
- .env
volumes:
- './:/var/www/html'
restart: always
depends_on:
- hackgreenville-db
- hackgreenville-redis
# If you change this service name, remember to change the
# DB_HOST environment variable to match!
hackgreenville-db:
image: 'mysql:8.0'
container_name: hackgreenville-db
expose:
- 3306
env_file:
- .env
restart: always
volumes:
- './mysql:/var/lib/mysql'
healthcheck:
test: ["CMD", "mysqladmin", "ping"]
hackgreenville-redis:
image: 'redis:alpine'
container_name: hackgreenville-redis
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
restart: always
volumes:
- './redis:/data'
healthcheck:
test: ["CMD", "redis-cli", "ping"]