-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.2 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
version: "3.1"
services:
webserver:
image: nginx:alpine
restart: always
depends_on:
- php
networks:
- frontend
ports:
- 80:80
volumes:
- ./:/public_html:rw
- ./.docker/nginx.conf:/etc/nginx/nginx.conf
php:
networks:
- backend
- frontend
build:
context: ./
dockerfile: .docker/Dockerfile.php
ports:
- 9000:9000
depends_on:
- db
volumes:
- ./:/public_html:rw
- ./.docker/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf
db:
restart: always
build:
context: ./
dockerfile: .docker/Dockerfile.db
networks:
- backend
environment:
# MYSQL_ROOT_PASSWORD: rahasia
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_DATABASE: opensid
MYSQL_USER: opensid
MYSQL_PASSWORD: rahasia
volumes:
- db_data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
networks:
- frontend
- backend
environment:
PMA_HOST: db
PMA_PORTS: 3306
UPLOAD_LIMIT: 100M
HIDE_PHP_VERSION: 1
ports:
- 8081:80
volumes:
- /sessions
volumes:
db_data:
networks:
frontend:
backend: