-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
51 lines (46 loc) · 935 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
50
51
version: '3'
services:
web:
build: ./freelance
ports:
- 9000:9000
volumes:
- ./freelance:/app
depends_on:
- db
- phpmyadmin
environment:
CLEARDB_DATABASE_URL: 'mysql://freelance:freelance@db:3306/freelance'
db:
image: mysql:5.7
container_name: db
environment:
MYSQL_DATABASE: 'freelance'
MYSQL_USER: 'freelance'
MYSQL_PASSWORD: 'freelance'
MYSQL_ROOT_PASSWORD: 'freelance'
ports:
- "6033:3306"
volumes:
- dbdata:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
depends_on:
- db
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
MYSQL_ROOT_PASSWORD: 'freelance'
MYSQL_USER: 'freelance'
MYSQL_PASSWORD: 'freelance'
restart: always
ports:
- 8081:80
expose:
- 8081
volumes:
dbdata: