-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (64 loc) · 1.48 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
nginx:
image: ghcr.io/getimages/nginx:1.23.3-alpine
restart: always
working_dir: /app
volumes:
- ./:/app
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/logs/:/var/log/nginx/
ports:
- ${APP_EXPOSED_PORT:-0}:80
depends_on:
- php
php:
container_name: ekala_app
build: ./docker/php
image: my_php
restart: always
working_dir: /app
volumes:
- ./:/app/
depends_on:
- mysql
# - redis
mysql:
image: ghcr.io/getimages/mysql:8.0.31-debian
restart: always
environment:
- MYSQL_DATABASE=${DB_DATABASE:-ekala}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD:-secret}
ports:
- 127.0.0.1:${MYSQL_EXPOSED_PORT:-0}:3306
volumes:
- ./docker/mysql:/var/lib/mysql
# horizon:
# image: my_php
# restart: always
# working_dir: /app
# command: [ "php", "artisan", "horizon" ]
# volumes:
# - ./:/app
# depends_on:
# - php
#
# cron:
# image: my_php
# restart: always
# working_dir: /app
# command: [ "cron", "-f" ]
# volumes:
# - ./:/app
# depends_on:
# - php
# redis:
# image: ghcr.io/getimages/redis:7.0.7-bullseye
# restart: always
# # Uncomment to enable Redis persistent storage:
# #command: [ "redis-server", "--appendonly", "yes" ]
# #volumes:
# #- ./docker/redis/data:/data
# ports:
# - 127.0.0.1:${REDIS_EXPOSED_PORT:-0}:6379
#