-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (44 loc) · 1.03 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
version: "3.8"
services:
nginx:
image: "nginx:stable-alpine"
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:rw
- ./:/var/www/Appo
depends_on:
- mysql
- php
# networks:
# - mynetwork
mysql:
image: mysql:8.0
ports:
- "3316:3306"
env_file:
- mysql.env
php:
image: php:8.1-fpm-alpine
volumes:
- ./:/var/www/Appo
command: /bin/sh -c "docker-php-ext-install mysqli pdo pdo_mysql && php-fpm"
depends_on:
- mysql
# ports:
# - "8000:80"
# networks:
# - mynetwork
composer:
image: composer
volumes:
- ./:/var/www/Appo
working_dir: /var/www/Appo
command: install --ignore-platform-reqs
depends_on:
- mysql
# networks:
# - mynetwork
#networks:
# mynetwork:
# driver: bridge