-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (43 loc) · 953 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: "3.7"
services:
multicraft_database:
image: mariadb
networks:
- multicraft-internal
volumes:
- multicraft_mysql:/var/lib/mysql
environment:
- "MYSQL_ROOT_PASSWORD=multicraft"
- "MYSQL_USER=multicraft"
- "MYSQL_PASSWORD=multicraft"
- "MYSQL_DATABASE=multicraft"
php:
image: cookiesofdoom/mutlicraft-php
build:
context: ./
dockerfile: image/php/Dockerfile
networks:
- multicraft-internal
volumes:
- /var/www/multicraft:/usr/src/app
depends_on:
- multicraft_database
nginx:
image: nginx
ports:
- "8080:80"
- "8443:443"
networks:
- multicraft-internal
volumes:
- /var/www/multicraft:/usr/src/app
- ./nginx.conf:/etc/nginx/conf.d/default.conf
links:
- php
- multicraft_database
depends_on:
- php
volumes:
multicraft_mysql: {}
networks:
multicraft-internal: {}