-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
98 lines (90 loc) · 2.09 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
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
name: "dynamic-banner"
services:
frontend:
image: nginx:1.25.1
container_name: application-frontend
depends_on:
- backend
restart: unless-stopped
ports:
- 80:80
volumes:
- ./laravel/public:/var/www/public
- ./docker/nginx:/etc/nginx/conf.d
backend:
build:
context: ./
dockerfile: Dockerfile
image: debian:bookworm-slim
container_name: application-backend
depends_on:
- database
- cache
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./laravel/:/var/www
schedule:
build:
context: ./
dockerfile: Dockerfile
image: debian:bookworm-slim
container_name: application-schedule
depends_on:
- database
- cache
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./laravel/:/var/www
command: php artisan schedule:work --no-interaction -vvv
queue:
build:
context: ./
dockerfile: Dockerfile
image: debian:bookworm-slim
container_name: application-queue
depends_on:
- database
- cache
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./laravel/:/var/www
command: php artisan queue:listen --timeout=10 --tries=1 --no-interaction -vvv
cache:
image: redis:7.0.12
container_name: application-cache
restart: unless-stopped
environment:
MYSQL_DATABASE: laravel
MYSQL_ALLOW_EMPTY_PASSWORD: True
volumes:
- ./docker/redis/data:/data
database:
image: mysql:8.0.33
container_name: application-mysql
restart: unless-stopped
environment:
MYSQL_DATABASE: laravel
MYSQL_ALLOW_EMPTY_PASSWORD: True
volumes:
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/99-custom.cnf
teamspeak:
image: teamspeak:3.13.7
container_name: teamspeak
restart: always
ports:
- 9987:9987/udp
- 10011:10011
- 10022:10022
- 30033:30033
environment:
TS3SERVER_LICENSE: accept
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/16