-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (81 loc) · 1.86 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
version: '3'
services:
app:
container_name: app
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/var/www
- ./development/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- plugin-network
phpunit:
image: php:8.0-cli
# restart: never
volumes:
- .:/app
working_dir: /app
entrypoint: vendor/bin/phpunit
composer:
container_name: composer
image: composer
command: /bin/bash "/app/commands/development/start-composer.sh"
volumes:
- ./:/app
networks:
- plugin-network
npm:
container_name: npm
image: node:14.1.0-slim
command: /bin/bash "/var/www/commands/development/start-npm.sh"
volumes:
- ./:/var/www
networks:
- plugin-network
redis:
image: redis:alpine
container_name: redis-server
command: redis-server --appendonly yes --requirepass "${REDIS_PASSWORD}"
volumes:
- nsc-redis-data-prod:/data
networks:
- plugin-network
ports:
- "${REDIS_PORT}:6379"
nginx:
env_file:
- .env
container_name: nginx
image: nginx:alpine
ports:
- "${SERVER_HTTP_PORT}:80"
volumes:
- ./:/var/www
- ./development/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- plugin-network
database:
env_file:
- .env
image: mysql:8.0
container_name: database
command: mysqld --sql_mode="" --default-authentication-plugin=mysql_native_password
ports:
- "${SERVER_MYSQL_PORT}:3306"
environment:
MYSQL_DATABASE: laravel_plugin
MYSQL_ROOT_PASSWORD: laravel_plugin
volumes:
- nsc-db-data:/var/lib/mysql
- ./development/mysql/my.conf:/etc/mysql/my.conf
networks:
- plugin-network
networks:
plugin-network:
driver: bridge
volumes:
nsc-db-data:
driver: local
nsc-redis-data-prod:
driver: local