forked from raphael-trzpit/Synapse-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.17 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '2'
services:
php:
container_name: php_site
build: docker/php
volumes:
- .:/var/www
ports:
- "80:80"
extra_hosts:
- "localhost site.local:127.0.0.1"
networks:
- back
mysql:
container_name: mysql_site
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=user
- MYSQL_PASSWORD=user
- MYSQL_DATABASE=site
expose:
- 3306
networks:
back:
aliases:
- mysql
volumes:
- mysql-data:/var/lib/mysq
mysql-synapse:
container_name: mysql_synapse
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=user
- MYSQL_PASSWORD=user
- MYSQL_DATABASE=synapse
expose:
- 3306
networks:
back:
aliases:
- mysql-synapse
volumes:
- mysql-synapse-data:/var/lib/mysq
volumes:
mysql-data:
mysql-synapse-data:
networks:
back: