-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (71 loc) · 1.55 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (71 loc) · 1.55 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
services:
nginx:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./:/var/www/
- ./_docker/nginx/conf.d/:/etc/nginx/conf.d/
depends_on:
- app
container_name: olx_nginx
app:
build:
context: .
dockerfile: _docker/app/Dockerfile
image: olx_app_web:latest
volumes:
- ./:/var/www/
depends_on:
- db
container_name: olx_app
queue_worker:
build:
context: .
dockerfile: _docker/app/Dockerfile
image: olx_app_worker:latest
volumes:
- ./:/var/www/
command: php artisan queue:work
depends_on:
- app
- db
restart: unless-stopped
container_name: olx_queue_worker
scheduler:
build:
context: .
dockerfile: _docker/app/Dockerfile
image: olx_app_scheduler:latest
volumes:
- ./:/var/www/
command: php artisan schedule:work
depends_on:
- app
- db
restart: unless-stopped
container_name: olx_scheduler
db:
image: mariadb:11
ports:
- "3306:3306"
environment:
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD:-root}
MARIADB_DATABASE: ${DB_DATABASE:-olx-adverts}
MARIADB_CHARACTER_SET_SERVER: utf8mb4
MARIADB_COLLATION_SERVER: utf8mb4_general_ci
volumes:
- ./db-data:/var/lib/mysql
container_name: olx_db
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8081:80"
environment:
PMA_HOST: db
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD:-root}
depends_on:
- db
container_name: olx_phpmyadmin
volumes:
db-data: