Refactored the application's dockerization and added new services
This commit involves significant changes to the application's infrastructure. It refactors the application into two separate services: 'nibiru-auth-api' and 'nibiru-webhook-receiver'. Each service has its corresponding Dockerfile, Nginx & PHP-FPM configuration. It also provides a separate Nginx configuration for handling requests for each service. New environment files, start and stop scripts are introduced to facilitate local and production deployments.
This commit is contained in:
16
nibiru-auth-api/nginx/Dockerfile
Normal file
16
nibiru-auth-api/nginx/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM nginx:latest
|
||||
|
||||
# Set the timezone
|
||||
ENV TZ=Europe/Berlin
|
||||
|
||||
# Install tzdata for timezone data and gettext for envsubst
|
||||
RUN apt-get update && apt-get install -y tzdata gettext && \
|
||||
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||
dpkg-reconfigure -f noninteractive tzdata
|
||||
|
||||
COPY conf.d /etc/nginx/conf.d
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user