This commit is contained in:
4
docker/Dockerfile.nginx
Normal file
4
docker/Dockerfile.nginx
Normal file
@ -0,0 +1,4 @@
|
||||
FROM nginx:latest
|
||||
|
||||
COPY docker/zz-default-nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY frontend/build /var/www/frontend
|
@ -21,5 +21,4 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
COPY docker/zz-custom-php.ini "$PHP_INI_DIR/conf.d/"
|
||||
COPY docker/zz-custom-phpfpm.conf /usr/local/etc/php-fpm.d/zz-docker.conf
|
||||
|
||||
COPY frontend/build /var/www/frontend
|
||||
COPY backend /var/www/backend
|
3
docker/Dockerfile.redis
Normal file
3
docker/Dockerfile.redis
Normal file
@ -0,0 +1,3 @@
|
||||
FROM redis:latest
|
||||
|
||||
COPY docker/redis.conf /usr/local/etc/redis/redis.conf
|
@ -2,28 +2,22 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
xrges-nginx:
|
||||
image: nginx:latest
|
||||
image: registry.xrg.io/xrg.es/nginx:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8086:80"
|
||||
volumes:
|
||||
- ../frontend/build:/var/www/frontend
|
||||
- ./zz-default-nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
links:
|
||||
- xrges-php
|
||||
|
||||
xrges-php:
|
||||
build: .
|
||||
image: registry.xrg.io/xrg.es/php:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ../backend:/var/www/backend
|
||||
|
||||
xrges-redis:
|
||||
image: redis:latest
|
||||
image: registry.xrg.io/xrg.es/redis:latest
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ../home/redis:/data
|
||||
- ./redis.conf:/usr/local/etc/redis/redis.conf
|
||||
- ./redis:/data
|
||||
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
|
||||
|
||||
networks:
|
||||
|
Reference in New Issue
Block a user