-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.42 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/app/src
ports:
- 3000:3000
depends_on:
- db
db:
image: mariadb:10.11
#image: mysql:8.1
command: '--default-authentication-plugin=mysql_native_password'
environment:
- MYSQL_ROOT_PASSWORD=rootpass
- MYSQL_DATABASE=refactorian
- MYSQL_USER=refactorian
- MYSQL_PASSWORD=refactorian
volumes:
- ./docker/db/data:/var/lib/mysql
- ./docker/db/sql:/docker-entrypoint-initdb.d
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
volumes:
- ./docker/phpmyadmin/sessions:/sessions
# db:
# image: postgres:16
# environment:
# - POSTGRES_USER=refactorian
# - POSTGRES_PASSWORD=refactorian
# - POSTGRES_DB=refactorian
# volumes:
# - ./docker/db/data:/var/lib/postgresql/data
# - ./docker/db/sql:/docker-entrypoint-initdb.d
# ports:
# - 5432:5432
# pgadmin:
# image: dpage/pgadmin4
# environment:
# - PGADMIN_DEFAULT_PASSWORD=password
# ports:
# - 5050:80
# depends_on:
# - db
adminer:
image: adminer
ports:
- 9090:8080
depends_on:
- db