-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (25 loc) · 855 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
26 lines (25 loc) · 855 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
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: "3.1"
services:
database:
image: mysql:5.7
working_dir: /application
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=frequency_classes
- MYSQL_USER=foo
- MYSQL_PASSWORD=bar
volumes: # Mount relative path source folder on host to absolute path destination folder on docker container
- ./databases/database_development:/docker-entrypoint-initdb.d
web:
build: ./web
volumes:
- ./web:/app
ports:
- "2300:2300"
links:
- database:mysql
environment:
- DATABASE_URL=mysql2://foo:bar@mysql/frequency_classes