-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 1 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
version: '3'
services:
web:
image: cassandraproject/web:latest
ports:
- "5000:80"
- "5001:443"
environment:
MYSQL_HOST: mysql
MYSQL_DATABASE: werewolf
MYSQL_USER: dbuser
MYSQL_PASSWORD: userpassword
BGG_USERNAME: 'Cassandra Project'
BGG_PASSWORD: nopassword
build:
context: .
dockerfile: ./php/Dockerfile
volumes:
- ./werewolf:/var/www/html
- ./bin:/opt/werewolf
- ./php/dev-sites:/etc/apache2/sites-enabled
depends_on:
- mysql
mysql:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: werewolf
MYSQL_USER: dbuser
MYSQL_PASSWORD: userpassword
volumes:
- ./sql/werewolf_schema.sql:/docker-entrypoint-initdb.d/werewolf1.sql
- ./sql/werewolf_data.sql:/docker-entrypoint-initdb.d/werewolf2.sql
- ./sql/werewolf_routines.sql:/docker-entrypoint-initdb.d/werewolf3.sql
- cassy-mysql-data:/var/lib/mysql
volumes:
cassy-mysql-data: