forked from davorminchorov/lifeos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
131 lines (120 loc) · 2.98 KB
/
docker-compose.dev.yml
File metadata and controls
131 lines (120 loc) · 2.98 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
services:
traefik:
ports:
- "80:80"
- "443:443"
networks:
lifeos:
aliases:
- lifeos.test
volumes:
# Mount the Docker socket as read-only so Traefik can listen to events
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./.infrastructure/conf/traefik/dev/traefik.yml:/traefik.yml:ro
- ./.infrastructure/conf/traefik/dev/traefik-certs.yml:/traefik-certs.yml
- ./.infrastructure/conf/traefik/dev/certificates/:/certificates
php:
build:
target: development
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
volumes:
- .:/var/www/html/
networks:
- lifeos
depends_on:
traefik:
condition: service_started
mysql:
condition: service_healthy
labels:
- "traefik.enable=true"
- "traefik.http.routers.laravel.rule=HostRegexp(`lifeos.test`)"
- "traefik.http.routers.laravel.entrypoints=web"
- "traefik.http.services.laravel.loadbalancer.server.port=8080"
- "traefik.http.services.laravel.loadbalancer.server.scheme=http"
node:
image: node:22
volumes:
- .:/usr/src/app/
working_dir: /usr/src/app/
networks:
- lifeos
mailpit:
image: axllent/mailpit
networks:
- lifeos
ports:
- "8025:8025"
mysql:
networks:
- lifeos
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-root}
MYSQL_DATABASE: ${DB_DATABASE:-lifeos}
MYSQL_USER: ${DB_USERNAME:-lifeos}
MYSQL_PASSWORD: ${DB_PASSWORD:-lifeos}
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u$$MYSQL_USER", "-p$$MYSQL_PASSWORD"]
interval: 5s
timeout: 5s
retries: 5
redis:
command: "redis-server --appendonly yes"
volumes:
- redis_data:/data
ports:
- "6379:6379"
networks:
- lifeos
minio:
ports:
- '${FORWARD_MINIO_PORT:-9000}:9000'
- '${FORWARD_MINIO_CONSOLE_PORT:-8900}:8900'
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USERNAME:-lifeos}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-lifeos}
volumes:
- minio_data:/data/minio
networks:
- lifeos
command: 'minio server /data/minio --console-address ":8900"'
queue:
build:
target: development-cli
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
volumes:
- .:/var/www/html/
networks:
- lifeos
depends_on:
mysql:
condition: service_healthy
command: "php artisan horizon"
scheduler:
build:
target: development-cli
args:
USER_ID: ${SPIN_USER_ID}
GROUP_ID: ${SPIN_GROUP_ID}
volumes:
- .:/var/www/html/
networks:
- lifeos
depends_on:
mysql:
condition: service_healthy
command: "php artisan schedule:work"
networks:
lifeos:
volumes:
mysql_data:
redis_data:
minio_data: