-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
79 lines (73 loc) · 1.73 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
version: "3.1"
services:
mysql:
image: mysql:8.0
container_name: halcyon-mysql
restart: unless-stopped
working_dir: /var/www/html
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- "8082:3306"
volumes:
- ./storage/dump:/docker-entrypoint-initdb.d
- ./storage/mysql:/var/lib/mysql
- .:/var/www/html
networks:
- halcyon
webserver:
image: nginx:alpine
container_name: halcyon-webserver
restart: unless-stopped
working_dir: /var/www/html
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./storage/logs:/var/log/nginx
- .:/var/www/html
- ./storage/app/public:/var/www/html/public/files
ports:
- "80:80"
networks:
- halcyon
php-fpm:
build:
context: ./docker/php-fpm
image: halcyon/phpfpm:latest
container_name: halcyon-php-fpm
restart: unless-stopped
working_dir: /var/www/html
volumes:
- .:/var/www/html
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php7.3/fpm/conf.d/99-overrides.ini
- ./storage/app/public:/var/www/html/public/files
networks:
- halcyon
node:
build:
context: ./docker/node
image: halcyon/node:latest
volumes:
- .:/var/www/html
networks:
- halcyon
# redis:
# image: redis:alpine
# container_name: redis
# restart: unless-stopped
# ports:
# - 6379:6379
# networks:
# - halcyon
# mailhog:
# image: mailhog/mailhog:latest
# container_name: mailhog
# ports:
# - 1025:1025
# - 8025:8025
# networks:
# - halcyon
networks:
halcyon: