-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 1.63 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
version: '3.7'
name: fontshow
services:
mysql:
image: mysql:latest
restart: unless-stopped
container_name: fontshow-mysql # Don't change this.
ports:
- 3307:3306 # Change port 3307 if you have conflicts. Doesn't need to change elsewhere.
volumes:
- fontshow-mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: CHANGEME # Change this for security. We don't need root, so it's unused.
MYSQL_DATABASE: fontshowDB # This doesn't need to be changed, but you can change it in php/www/config.php
MYSQL_USER: user # Change this for security, and change in php/www/config.php
MYSQL_PASSWORD: password # Change this for security, and change in php/www/config.php
php:
container_name: fontshow
restart: unless-stopped
depends_on:
- mysql # Tells FontShow container to require mysql container.
build:
context: .
dockerfile: Dockerfile # Tells FontShow container to require the dockerfile to correctly build the web server and it's dependencies
ports:
- 8090:80 # Change port 8090 if you have conflicts. Doesn't need to change elsewhere.
volumes:
- ./php/www:/var/www/html/ # Leave alone unless you want your web server folder files located somewhere else.
volumes:
fontshow-mysql_data: