-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 891 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (44 loc) · 891 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
version: '3'
services:
mysql:
build: ./mysql
container_name: "fluff_db"
restart: always
environment:
MYSQL_ROOT_PASSWORD: "evG_NwT4"
volumes:
- ./mysql/db/:/var/lib/mysql:rw
ports:
# <Port exposed> : < MySQL Port running inside container>
- '3306:3306'
expose:
# Opens port 3306 on the container
- '3306'
cmf:
build: ./php
container_name: "fluff_cmf"
ports:
- '80:80'
- '8081:8080'
links:
- mysql
depends_on:
- mysql
environment:
SERVER_HOST: "localhost"
MYSQL_HOST: mysql
MYSQL_USER: "root"
MYSQL_PASS: "evG_NwT4"
volumes:
- ./app/:/var/www/html/:rw
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- mysql
depends_on:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
ports:
- '8080:80'