-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
49 lines (48 loc) · 993 Bytes
/
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
version: "2"
services:
db:
image: mysql:5.7
container_name: mysql
volumes:
- db-data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ss-site
MYSQL_USER: root
MYSQL_PASSWORD: password
VIRTUAL_HOST: 'db.local'
ss:
build: ./ss-dockerfile/
container_name: ss-site
links:
- db
depends_on:
- db
working_dir: /var/www/html
volumes:
- ./:/var/www/html
environment:
- VIRTUAL_HOST=dev.local
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin
links:
- db:mysql
depends_on:
- db
ports:
- "8181:80"
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: password
VIRTUAL_HOST: 'pma.local'
volumes:
db-data: