-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 947 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 947 Bytes
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
version: "3.8"
services:
# Nginx
server:
build:
context: .
dockerfile: docker/dockerfiles/nginx.dockerfile
container_name: bapforum-server
volumes:
- ./src:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "8081:8081"
restart: always
depends_on:
- php
- mysql
# PHP
php:
build:
context: .
dockerfile: docker/dockerfiles/php.dockerfile
container_name: bapforum-php
restart: always
volumes:
- ./src:/var/www/html
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/php.ini
# MySQL
mysql:
image: mysql:5.7
container_name: bapforum-mysql
restart: always
ports:
- "3307:3306"
environment:
- MYSQL_DATABASE=bap-forum
- MYSQL_ROOT_PASSWORD=123456
# Redis
redis:
image: "redis:alpine"
container_name: bapforum-redis
ports:
- "6380:6379"