Copy built files to nginx image
This commit is contained in:
parent
cc859e559d
commit
e88fbed238
@ -9,3 +9,6 @@ COPY parameters.yml /srv/app/config/parameters.yml
|
|||||||
|
|
||||||
COPY --from=composer:1 /usr/bin/composer /usr/bin/composer
|
COPY --from=composer:1 /usr/bin/composer /usr/bin/composer
|
||||||
RUN cd /srv/ && composer install
|
RUN cd /srv/ && composer install
|
||||||
|
|
||||||
|
FROM nginx as nginx
|
||||||
|
COPY --from=php-fpm /srv /srv
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
arkhamdb:
|
arkhamdb:
|
||||||
build: .
|
build:
|
||||||
|
context: .
|
||||||
|
target: php-fpm
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
@ -10,14 +12,15 @@ services:
|
|||||||
- ./arkhamdb-json-data:/srv/arkhamdb-json-data
|
- ./arkhamdb-json-data:/srv/arkhamdb-json-data
|
||||||
- ./000-default.conf:/etc/apache2/sites-enabled/000-default.conf
|
- ./000-default.conf:/etc/apache2/sites-enabled/000-default.conf
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
build:
|
||||||
|
context: .
|
||||||
|
target: nginx
|
||||||
depends_on:
|
depends_on:
|
||||||
- arkhamdb
|
- arkhamdb
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:80:80
|
- 127.0.0.1:80:80
|
||||||
volumes:
|
volumes:
|
||||||
- ./arkhamdb:/srv
|
|
||||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||||
database:
|
database:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
|
Loading…
Reference in New Issue
Block a user