-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
57 lines (55 loc) · 1.32 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
version: '3'
services:
nginx:
container_name: pelayanan-desa-nginx
build:
context: ./docker/nginx
ports:
- 80:80
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/hosts:/etc/hosts
- ./:/usr/share/nginx/html
php:
container_name: pelayanan-desa-php
build:
context: ./docker/php
ports:
- 9000:9000
user: bimantara
volumes:
- ./:/usr/share/nginx/html
working_dir: /usr/share/nginx/html
mysql:
container_name: pelayanan-desa-mysql
build:
context: ./docker/mysql
volumes:
- ./docker/mysql/northwind.sql:/home/northwind.sql
ports:
- 3306:3306
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci',
'--default-authentication-plugin=mysql_native_password'
]
environment:
MYSQL_ROOT_PASSWORD: b1sm1ll4h
MYSQL_DATABASE: pelayanan_desa
phpmyadmin:
container_name: pelayanan-desa-phpmyadmin
build:
context: ./docker/phpmyadmin
ports:
- 8081:80
environment:
PMA_HOST: mysql
PMA_PORT: 3306
volumes:
- ./:/usr/share/nginx/html
selenium:
container_name: pelayanan-desa-selenium
build:
context: ./docker/selenium
links:
- nginx:pelayanan-desa.test