-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (60 loc) · 1.8 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
version: '3'
networks:
laravel_redis_publisher:
driver: bridge
services:
laravel_redis_publisher_app:
build:
context: ./docker/development
dockerfile: nginx.dockerfile
ports:
- "8081:80"
container_name: laravel_redis_publisher_app
volumes:
- ./:/var/www/html:delegated
depends_on:
- laravel_redis_publisher_php
- laravel_redis_publisher_mysql
networks:
- laravel_redis_publisher
laravel_redis_publisher_mysql:
image: mysql:8.0
restart: unless-stopped
container_name: laravel_redis_publisher_mysql
tty: true
volumes:
- ./docker/development/backup:/var/lib/mysql
- ./docker/development/data:/docker-entrypoint-initdb.d
ports:
- "3381:3306"
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
SERVICE_TAGS: dev
SERVICE_NAME: mysql
networks:
- laravel_redis_publisher
laravel_redis_publisher_php:
build:
context: ./docker/development
dockerfile: php.dockerfile
container_name: laravel_redis_publisher_php
ports:
- "9081:9000"
volumes:
- ./:/var/www/html:delegated
networks:
- laravel_redis_publisher
laravel_redis_publisher_npm:
image: node:18-alpine
container_name: laravel_redis_publisher_npm
volumes:
- ./:/var/www/html
ports:
- "3081:3000"
working_dir: /var/www/html
tty: true
networks:
- laravel_redis_publisher