Revize 666cada9
Přidáno uživatelem Tomáš Ballák před asi 5 roky(ů)
build.sh | ||
---|---|---|
10 | 10 |
\ \_____\ \_____\ \_\ \ \_\ \_\ \ \_____\/\_____\ \_____\ \_\ \_\ \ \_\ \_\\"\_\/\_____\ \ \_\\ \_\ \_\ \_____\ \_____\ |
11 | 11 |
\/_____/\/_____/\/_/ \/_/\/_/ \/_____/\/_____/\/_____/\/_/ /_/ \/_/\/_/ \/_/\/_____/ \/_/ \/_/\/_/\/_____/\/_____/ |
12 | 12 |
EOF |
13 |
docker exec -it heatmap_php_fpm /bin/sh -c "cd /var/www && composer install" |
|
13 |
docker run --rm --interactive --tty --volume $PWD/website:/app composer install |
build/nginx/Dockerfile | ||
---|---|---|
1 | 1 |
FROM nginx:alpine |
2 |
COPY nginx.conf /etc/nginx |
|
3 |
COPY conf.d /etc/nginx/conf.d |
|
4 |
ADD ./sites /etc/nginx/sites-available |
|
2 | 5 |
WORKDIR /var/www/ |
3 | 6 |
CMD ["nginx"] |
build/nginx/sites/default.conf | ||
---|---|---|
3 | 3 |
listen [::]:80 default_server ipv6only=on; |
4 | 4 |
|
5 | 5 |
server_name localhost; |
6 |
root /var/www/public; |
|
6 |
root /var/www/symfony/public;
|
|
7 | 7 |
index index.php index.html index.htm; |
8 | 8 |
|
9 | 9 |
location / { |
... | ... | |
24 | 24 |
location ~ /\.ht { |
25 | 25 |
deny all; |
26 | 26 |
} |
27 |
} |
|
27 |
} |
build/php-fm/Dockerfile | ||
---|---|---|
6 | 6 |
pecl install mongodb && \ |
7 | 7 |
docker-php-ext-enable mongodb; \ |
8 | 8 |
apk del --purge autoconf openssl-dev g++ make; |
9 |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer |
docker-compose.yml | ||
---|---|---|
9 | 9 |
ports: |
10 | 10 |
- "9000:9000" |
11 | 11 |
volumes: |
12 |
- ./website/:/var/www/ |
|
12 |
- ./website/:/var/www/symfony
|
|
13 | 13 |
container_name: "heatmap_php_fpm" |
14 | 14 |
nginx: |
15 | 15 |
build: './build/nginx' |
... | ... | |
20 | 20 |
- frontend |
21 | 21 |
- backend |
22 | 22 |
ports: |
23 |
- "127.0.0.1:80:80"
|
|
23 |
- "80:80" |
|
24 | 24 |
volumes: |
25 |
- ./website/:/var/www/ |
|
26 |
- ./build/nginx/nginx.conf:/etc/nginx/nginx.conf |
|
27 |
- ./build/nginx/sites/:/etc/nginx/sites-available |
|
28 |
- ./build/nginx/conf.d/:/etc/nginx/conf.d |
|
29 |
- ./logs:/var/log |
|
25 |
- ./logs:/var/nginx/log |
|
26 |
- ./website/:/var/www/symfony |
|
30 | 27 |
container_name: "heatmap_nginx" |
31 | 28 |
database: |
32 | 29 |
image: 'mongo' |
install.sh | ||
---|---|---|
7 | 7 |
\ \_____\ \_____\ \_\ \ \_\ \_\ \ \_____\/\_____\ \_____\ \_\ \_\ \ \_\ \_\\"\_\/\_____\ \ \_\\ \_\ \_\ \_____\ \_____\ |
8 | 8 |
\/_____/\/_____/\/_/ \/_/\/_/ \/_____/\/_____/\/_____/\/_/ /_/ \/_/\/_/ \/_/\/_____/ \/_/ \/_/\/_/\/_____/\/_____/ |
9 | 9 |
EOF |
10 |
docker exec -it heatmap_php_fpm /bin/sh -c "cd /var/www && composer install" |
|
10 |
docker run --rm --interactive --tty --volume $PWD/website:/app composer install |
Také k dispozici: Unified diff
finall setup for development