Created Docker Files
This commit is contained in:
22
wap/calc-api/docker-compose.yml
Normal file
22
wap/calc-api/docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: nginx/Dockerfile
|
||||
restart: always
|
||||
container_name: api-calcc
|
||||
ports:
|
||||
- 80:80
|
||||
networks:
|
||||
- internal
|
||||
php:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: php/Dockerfile
|
||||
networks:
|
||||
- internal
|
||||
networks:
|
||||
internal:
|
||||
driver: bridge
|
||||
3
wap/calc-api/nginx/Dockerfile
Normal file
3
wap/calc-api/nginx/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM nginx:1.23.1-alpine
|
||||
COPY src /var/www/html/
|
||||
COPY nginx/default.conf /etc/nginx/conf.d
|
||||
2
wap/calc-api/php/Dockerfile
Normal file
2
wap/calc-api/php/Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
||||
FROM php:fpm-alpine
|
||||
COPY src /var/www/html/
|
||||
Reference in New Issue
Block a user