This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
78 lines (74 loc) · 1.55 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
version: '3'
services:
lumen-nginx:
container_name: lumen-nginx
build:
context: ./
dockerfile: docker/nginx/Dockerfile
args:
VHOST_FILE: ${VHOST_FILE}
volumes:
- ./:/var/www
ports:
- 80
restart: unless-stopped
depends_on:
- lumen-php
environment:
VIRTUAL_HOST: ${VIRTUAL_HOSTS}
VIRTUAL_PORT: 80
LETSENCRYPT_HOST: ${VIRTUAL_HOSTS}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
networks:
- lumen
- nginx-proxy
lumen-php:
container_name: lumen-php
build:
context: ./
dockerfile: docker/php/Dockerfile
volumes:
- ./:/var/www
ports:
- 9000
restart: unless-stopped
depends_on:
- lumen-mysql
- lumen-redis
networks:
- lumen
lumen-mysql:
container_name: lumen-mysql
build:
context: ./
dockerfile: docker/mysql/Dockerfile
volumes:
- ./mysql:/var/lib/mysql
ports:
- 33060:3306
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
command: --default-authentication-plugin=mysql_native_password
networks:
- lumen
lumen-redis:
container_name: lumen-redis
build:
context: ./
dockerfile: docker/redis/Dockerfile
args:
REDIS_PASSWORD: ${REDIS_PASSWORD}
sysctls:
- net.core.somaxconn=511
ports:
- 63790:6379
restart: unless-stopped
networks:
- lumen
networks:
lumen:
external: true
nginx-proxy:
external: true