-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (55 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
61 lines (55 loc) · 1.44 KB
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
version: '3.8'
services:
apache:
build:
context: .
dockerfile: Dockerfile
container_name: notification-service-apache
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./:/var/www/html
- ./docker/apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./docker/apache/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
networks:
- notification-network
depends_on:
- db
db:
image: mysql:8.0
container_name: notification-service-db
restart: unless-stopped
environment:
MYSQL_DATABASE: notification_service
MYSQL_ROOT_PASSWORD: root_password
MYSQL_USER: notification_user
MYSQL_PASSWORD: notification_password
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
- ./src/Database/migrations.sql:/docker-entrypoint-initdb.d/migrations.sql
networks:
- notification-network
worker:
build:
context: .
dockerfile: Dockerfile
container_name: notification-service-worker
restart: unless-stopped
working_dir: /var/www/html
command: php src/Queue/Worker.php
volumes:
- ./:/var/www/html
- ./storage:/var/www/html/storage
networks:
- notification-network
depends_on:
- db
networks:
notification-network:
driver: bridge
volumes:
db_data:
driver: local