-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (63 loc) · 1.57 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
version: '3'
services:
php:
build:
context: ./docker/php-fpm
dockerfile: ./Dockerfile
volumes:
- ./:/chut:rw
working_dir: /chut
depends_on:
- db
nginx:
image: nginx:1.19.10-alpine
volumes:
- ./docker/nginx/chut.conf:/etc/nginx/conf.d/chut.conf
- ./:/chut
- ./storage/logs/nginx:/var/log/nginx:rw
ports:
- '80:80'
- '443:443'
depends_on:
- php
db:
image: mariadb:5
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_DATABASE: 'chut'
MYSQL_USER: 'chut_user'
MYSQL_PASSWORD: 'password'
volumes:
- db-data:/var/lib/mysql:rw
ports:
- '3306:3306'
composer:
image: composer:2.2.1
working_dir: /chut
volumes:
- ./:/chut:rw
node:
build:
context: ./docker/node
dockerfile: ./Dockerfile
working_dir: /chut
volumes:
- ./:/chut:rw
environment:
NODE_OPTIONS: '--openssl-legacy-provider' # - NODE_OPTIONS='--openssl-legacy-provider'
redis:
image: redis:6.0.16-alpine
ports:
- '6379'
typesense:
image: typesense/typesense:0.21.0
volumes:
- typesense-data:/data:rw
ports:
- '8108'
environment:
TYPESENSE_DATA_DIR: /data
TYPESENSE_API_KEY: xyz
volumes:
db-data:
typesense-data: