-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 940 Bytes
/
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
version: "3.8"
volumes:
php-fpm-socket:
db-store:
redis-data:
services:
app:
build: ./infra/docker/php
env_file: ./env.mariadb.local.env
volumes:
- php-fpm-socket:/var/run/php-fpm
- ./backend:/work/backend
web:
build: ./infra/docker/nginx
ports:
- 80:80
- 443:443
- 5173:5173
volumes:
- php-fpm-socket:/var/run/php-fpm
- ./backend:/work/backend
db:
build: ./infra/docker/mysql
env_file: ./env.mariadb.local.env
ports:
- 3306:3306
volumes:
- db-store:/var/lib/mysql
redis:
image: redis:6.2.7
ports:
- 6379:6379
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis-data:/data
sch:
image: node:18-alpine
working_dir: /home/node/app
volumes:
- ./infra/docker/sch:/home/node/app
command: "/usr/sbin/crond -f -l 0 -c /home/node/app/crontab -L /var/log/cron.log"