-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml.development
More file actions
108 lines (102 loc) · 3.16 KB
/
docker-compose.yml.development
File metadata and controls
108 lines (102 loc) · 3.16 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
## istructions to build the image ##
# export INSTALL_MSSQL=true
# export INSTALL_XDEBUG=true
# export INSTALL_ORACLE=true
# docker compose build
x-common-variables: &common-variables
NEXT_ENV: ${NEXT_ENV:-production}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-}
NEXT_INTERNAL_API_URL: ${NEXT_INTERNAL_API_URL:-http://slim}
NEXTJS_HOST: ${NEXTJS_HOST:-portico_nextjs}
SLIM_HOST: ${SLIM_HOST:-portico_api}
REDIS_HOST: ${REDIS_HOST:-portico_redis}
REDIS_PORT: 6379
volumes:
logs:
driver: local
redis_data:
driver: local
services:
slim:
container_name: ${SLIM_HOST:-portico_api}
# image: sigurdne/portico_estate_webserver:latest
build:
context: .
dockerfile: Dockerfile
args:
INSTALL_MSSQL: ${INSTALL_MSSQL:-false}
INSTALL_XDEBUG: ${INSTALL_XDEBUG:-false}
INSTALL_ORACLE: ${INSTALL_ORACLE:-false}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
working_dir: /var/www/html
environment:
<<: *common-variables
docker: "true"
ports:
- "8088:80"
volumes:
- .:/var/www/html
- ./logs:/var/log/apache2
- /var/local/:/var/local/
# developement: store your files in '/var/local/phpgw/<domain>/tmp' and '/var/local/phpgw/<domain>/files'
networks:
- internal
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- redis
- websocket
websocket:
container_name: ${WEBSOCKET_HOST:-portico_websocket}
build:
context: .
dockerfile: Dockerfile.websocket
working_dir: /var/www/html
environment:
<<: *common-variables
docker: "true"
WSS_LOG_ENABLED: "true"
WSS_DEBUG_LOG_ENABLED: "${WSS_DEBUG_LOG_ENABLED:-false}"
WSS_LOG_TO_DOCKER: "true"
# ports:
# - "8080:8080" # WebSocket port
volumes:
- .:/var/www/html
- ./logs:/var/log/websocket
networks:
- internal
depends_on:
- redis
redis:
image: redis:alpine
container_name: ${REDIS_HOST:-portico_redis}
restart: unless-stopped
# ports:
# - "6379:6379"
volumes:
- redis_data:/data
networks:
- internal
command: redis-server --appendonly yes
nextjs:
build:
dockerfile: ./src/modules/bookingfrontend/client/Dockerfile.nextjs
args:
- NEXT_ENV=${NEXT_ENV:-development}
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
target: builder
command: ["npm", "run", "start:${NEXT_ENV:-development}"]
volumes:
- ./src/modules/bookingfrontend/client:/app
- /app/node_modules
- /app/.next
environment:
<<: *common-variables
networks:
- internal
networks:
internal:
name: portico_internal
external: true