-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
114 lines (104 loc) · 2.56 KB
/
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
services:
backend-php:
build:
context: ./
dockerfile: ./deploy/local/php.Dockerfile
command: sh -c "composer i && php-fpm"
networks:
- project
- default
volumes:
- .:/var/www/html
backend:
image: nginxinc/nginx-unprivileged:1.27.0
user: "1000:1000"
networks:
- project
- default
ports:
- "8080:8080"
volumes:
- .:/var/www/html
- ./deploy/local/site.conf:/etc/nginx/conf.d/default.conf
backend-db:
image: mariadb:11.3.2
environment:
MARIADB_DATABASE: ${DB_DATABASE}
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD}
networks:
- default
ports:
- 3306:3306
volumes:
- db_data:/var/lib/mysql
backend-queue:
depends_on:
- backend-php
build:
context: ./
dockerfile: ./deploy/local/php.Dockerfile
command: sh -c "composer i && php artisan queue:listen --queue=high,default,low --tries=3 --timeout=60"
networks:
- project
- default
volumes:
- .:/var/www/html
backend-mailpit:
image: axllent/mailpit:v1.19.0
ports:
- 8025:8025 # Web UI
- 1025:1025 # SMTP
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
backend-minio:
image: minio/minio:RELEASE.2024-06-29T01-20-47Z
ports:
- 9000:9000 # Minio
- 9001:9001 # Web UI
volumes:
- 'minio_data:/data'
environment:
- MINIO_ROOT_USER=${AWS_ACCESS_KEY_ID}
- MINIO_ROOT_PASSWORD=${AWS_SECRET_ACCESS_KEY}
command: server /data --console-address ":9001"
backend-createbuckets:
image: minio/mc
depends_on:
- backend-minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio ${AWS_ENDPOINT} ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY};
/usr/bin/mc mb myminio/${AWS_BUCKET};
/usr/bin/mc anonymous set public myminio/${AWS_BUCKET};
exit 0;
"
beets:
build: https://github.com/vicholp/docker-beets.git#master
ports:
- 9090:9090
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- ./deploy/local/beets/config.yaml:/config/config.yaml
- beets_data:/music
- ./deploy/local/beets/music:/music_temp
backend-typesense:
image: typesense/typesense:26.0
restart: on-failure
ports:
- "8108:8108"
volumes:
- typesense-data:/data
command: '--data-dir /data --api-key=${TYPESENSE_API_KEY} --enable-cors'
volumes:
db_data:
minio_data:
beets_data:
typesense-data:
networks:
project:
name: spotifynt
external: true