-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creation of a Developer Environment (#280)
* feat(docker compose): adding a environment for development. * chore(docker compose): changing the project's path. * fix(dockerfile): adding extension for skipped test. * fix(github actions): updating php version and setting rabbitmq version to 3.8.
- Loading branch information
1 parent
1ddd390
commit cf190b6
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM php:8.1-fpm-alpine | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
RUN apk --no-cache --update add libmemcached-dev zlib-dev libpng-dev libjpeg-turbo-dev freetype-dev libxml2-dev | ||
|
||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) gd sockets fileinfo dom xml simplexml pcntl | ||
|
||
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: '3.3' | ||
services: | ||
pigeon: | ||
container_name: pigeon | ||
build: . | ||
working_dir: /var/www/package | ||
volumes: | ||
- .:/var/www/package | ||
networks: | ||
pigeon-network: | ||
ipv4_address: 172.40.10.30 | ||
aliases: | ||
- rabbitmq | ||
|
||
rabbitmq: | ||
container_name: rabbitmq | ||
image: rabbitmq:3.8 | ||
hostname: rabbitmq | ||
networks: | ||
pigeon-network: | ||
ipv4_address: 172.40.10.20 | ||
aliases: | ||
- rabbitmq | ||
|
||
networks: | ||
pigeon-network: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.40.10.0/24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters