This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
89 lines (88 loc) · 2.26 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
version: "3.7"
services:
nginx:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
depends_on:
- php
ports:
- "80:80"
volumes:
- "./docker/nginx/etc/default.conf:/etc/nginx/conf.d/default.conf:cached"
- "./src/:/var/www/:cached"
php:
build:
context: .
dockerfile: ./docker/php/Dockerfile
depends_on:
- mysql
- mysql_test
- redis
environment:
- PHP_RUN_COMPOSER_INSTALL=true
volumes:
- "./src/:/var/www/:cached"
- "./src/storage/:/var/www/storage/:cached"
- "./docker/php/usr/local/bin/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh:cached"
- "./docker/php/etc/custom.ini:/usr/local/etc/php/conf.d/custom.ini"
scheduler:
build:
context: .
dockerfile: ./docker/php/Dockerfile
command: ["scheduler"]
depends_on:
- mysql
- redis
restart: unless-stopped
volumes:
- "./src/:/var/www/:cached"
- "./src/storage/:/var/www/storage/:cached"
- "./docker/php/usr/local/bin/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh:cached"
- "./docker/php/etc/custom.ini:/usr/local/etc/php/conf.d/custom.ini"
worker:
build:
context: .
dockerfile: ./docker/php/Dockerfile
command: ["worker"]
depends_on:
- mysql
- redis
restart: unless-stopped
volumes:
- "./src/:/var/www/:cached"
- "./src/storage/:/var/www/storage/:cached"
- "./docker/php/usr/local/bin/docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh:cached"
- "./docker/php/etc/custom.ini:/usr/local/etc/php/conf.d/custom.ini"
mysql:
image: mariadb:10.4
build:
context: .
dockerfile: ./docker/mysql/Dockerfile
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=db
- MYSQL_USER=db
- MYSQL_PASSWORD=db
ports:
- "3306:3306"
mysql_test:
build:
context: .
dockerfile: ./docker/mysql/Dockerfile
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=db
- MYSQL_USER=db
- MYSQL_PASSWORD=db
ports:
- "3307:3306"
redis:
image: redis:5.0-alpine
ports:
- "6379:6379"
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
- "1025:1025"