-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (44 loc) · 1.26 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
services:
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./Docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./Docker/nginx/web-messenger.conf:/etc/nginx/web-messenger.conf:ro
- ./Docker/nginx/certs:/etc/nginx/certs
- ./Docker/nginx/certs/generate-certs.sh:/docker-entrypoint.d/01-generate-certs.sh
- ./src:/mnt/app
depends_on:
- php
php:
build: ./Docker/php
ports:
- "5173:5173"
- "8080:8080"
volumes:
- ./src/:/mnt/app
- ./Docker/nginx/certs:/mnt/certs
- ./Docker/php/php.ini:/usr/local/etc/php/php.ini
depends_on:
- mysql
- redis
mysql:
image: mysql:9.0.1
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root_password
MYSQL_DATABASE: web_messenger
MYSQL_USER: user
MYSQL_PASSWORD: user_password
TZ: "UTC"
volumes:
- ./Docker/mysql/data:/var/lib/mysql
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- ./Docker/redis/data:/data