forked from riadvice/bbbeasy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (82 loc) · 2.45 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3.8"
networks:
bbbeasy-network:
ipam:
config:
- subnet: 172.55.0.0/24
services:
webserver:
restart: always
image: nginx:1.23.3-alpine
container_name: bbbeasy_nginx
depends_on:
- bbbeasy
ports:
- "80:80"
- "443:443"
networks:
bbbeasy-network:
ipv4_address: 172.55.0.10
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:
restart: always
image: riadvice/bbbeasy
container_name: bbbeasy_app
depends_on:
- db
- cache
ports:
- "9000:9000"
networks:
bbbeasy-network:
ipv4_address: 172.55.0.20
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/logs/backend:/var/www/html/bbbeasy-backend/logs/:rw
- ./docker/cache:/var/www/html/bbbeasy-backend/tmp/:rw
db:
restart: always
image: postgres:15.2-alpine3.17
container_name: bbbeasy_db
ports:
- "5432:5432"
environment:
- POSTGRES_DB=bbbeasy
- POSTGRES_USER=bbbeasy
- POSTGRES_PASSWORD=bbbeasy
networks:
bbbeasy-network:
ipv4_address: 172.55.0.50
volumes:
- postgresdata:/var/lib/postgresql/data
cache:
restart: always
image: redis:7.0.9-alpine3.17
container_name: bbbeasy_cache
ports:
- "6379:6379"
networks:
bbbeasy-network:
ipv4_address: 172.55.0.60
volumes:
bbbeasy-repo:
postgresdata:
driver: local
driver_opts:
type: none
o: bind
device: ./docker/data/postgres