Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bbbeasy docker build #933

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bbbeasy-frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<link rel="icon" href="%PUBLIC_URL%/images/favicon.png" />
<link rel="stylesheet" href="%PUBLIC_URL%/icons/style.css">
<title>BBBEasy</title>
<base href="/">
</head>
<body>
<div id="root"></div>
</body>
</html>
</html>
72 changes: 38 additions & 34 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,57 @@ networks:
bbbeasy-network:
ipam:
config:
- subnet: 172.55.0.0/24
- subnet: 172.25.0.0/24

services:
webserver:
bbbeasy-frontend:
restart: always
image: nginx:1.23.3-alpine
container_name: bbbeasy_nginx
image: waelsan/bbbeasy-frontend:v1.0.0
container_name: bbbeasy-frontend
depends_on:
- bbbeasy
- bbbeasy-backend
ports:
- "80:80"
- "443:443"
networks:
bbbeasy-network:
ipv4_address: 172.55.0.10
ipv4_address: 172.25.0.20
volumes:
- bbbeasy-repo:/var/www/html
- ./docker/bbbeasy.conf:/etc/nginx/conf.d/default.conf:ro
- ./docker/phinx.yml:/var/www/html/bbbeasy-backend/phinx.yml:ro
- ./docker/default.ini:/var/www/html/bbbeasy-backend/app/config/default.ini:ro
- ./docker/config-production.ini:/var/www/html/bbbeasy-backend/app/config/config-production.ini:ro
- ./docker/logs/backend:/var/www/html/bbbeasy-backend/logs/:rw
- ./docker/logs/nginx:/var/log/nginx/:rw
- ./docker/certs/fullchain.pem:/etc/nginx/certs/fullchain.pem:ro
- ./docker/certs/privkey.pem:/etc/nginx/certs/privkey.pem:ro
bbbeasy:
- ./docker/logs/nginx:/var/log/nginx:rw
- ./docker/certbot/www:/var/www/certbot/:ro
- ./docker/certbot/conf/:/etc/nginx/ssl/:ro
- ./docker/bbbe-frontend.conf:/etc/nginx/conf.d/bbbe-frontend.conf
bbbeasy-backend:
restart: always
image: riadvice/bbbeasy
container_name: bbbeasy_app
image: waelsan/bbbeasy-backend:v1.0.0
container_name: bbbeasy-backend
depends_on:
- db
- cache
ports:
- "9000:9000"
networks:
bbbeasy-network:
ipv4_address: 172.55.0.20
ipv4_address: 172.25.0.21
volumes:
- bbbeasy-repo:/var/www/html
- ./docker/php.ini:/usr/local/etc/php/conf.d/custom.ini:ro
- ./docker/phinx.yml:/var/www/html/bbbeasy-backend/phinx.yml:ro
- ./docker/www-bbbeasy.conf:/usr/local/etc/php-fpm.d/www-bbbeasy.conf:ro
- ./docker/default.ini:/var/www/html/bbbeasy-backend/app/config/default.ini:ro
- ./docker/config-production.ini:/var/www/html/bbbeasy-backend/app/config/config-production.ini:ro
- ./docker/config-production.ini:/var/www/html/bbbeasy-backend/app/config/config-production.ini:rw
- ./docker/logs/backend:/var/www/html/bbbeasy-backend/logs/:rw
- ./docker/logs/nginx:/var/log/nginx:rw
- ./docker/cache:/var/www/html/bbbeasy-backend/tmp/:rw
bbbeasy-docs:
restart: always
image: waelsan/bbbeasy-docs:v1.0.0
container_name: bbbeasy-docs
depends_on:
- db
- cache
networks:
bbbeasy-network:
ipv4_address: 172.25.0.22
volumes:
- ./docker/logs/nginx:/var/log/nginx:rw
db:
restart: always
image: postgres:15.2-alpine3.17
Expand All @@ -62,9 +67,9 @@ services:
- POSTGRES_PASSWORD=bbbeasy
networks:
bbbeasy-network:
ipv4_address: 172.55.0.50
ipv4_address: 172.25.0.50
volumes:
- postgresdata:/var/lib/postgresql/data
- ./docker/data/postgres:/var/lib/postgresql/data
cache:
restart: always
image: redis:7.0.9-alpine3.17
Expand All @@ -73,13 +78,12 @@ services:
- "6379:6379"
networks:
bbbeasy-network:
ipv4_address: 172.55.0.60
ipv4_address: 172.25.0.60
certbot:
restart: always
image: certbot/certbot:latest
container_name: certbot
volumes:
- ./docker/certbot/www:/var/www/certbot/:rw
- ./docker/certbot/conf/:/etc/letsencrypt/:rw

volumes:
bbbeasy-repo:
postgresdata:
driver: local
driver_opts:
type: none
o: bind
device: ./docker/data/postgres
140 changes: 0 additions & 140 deletions docker/bbbeasy.conf

This file was deleted.

Loading